Can one master the basics of programming ( If-statements, methods, arrays, inheritance etc..) in one month?

Can one master the basics of programming ( If-statements, methods, arrays, inheritance etc..) in one month?

Other urls found in this thread:

youtube.com/watch?v=vNHpsC5ng_E&list=PLF206E906175C7E07
twitter.com/NSFWRedditImage

in one week

How?

>basics of programming

Depends on the language, but sure. In a day or so you could learn the basics of C/C++.

>methods [...] inheritance

That's the basics of object oriented programming , and a whole lot of theory. You won't master the basics of OOP in a month.

know, yes. working knowledge, yes. master, no.

Pick a language (I suggest C -- you'll get to learn concepts like basic datatypes, functions, "flow control" (if...), and loops) and read up on it.

Been learning C++ for the last two weeks in what spare time I have. Keep at it and don't get discouraged. You can get the basics easy, but more complicated than that and it takes practice practice practice.

Post moar of this qt pls she reminds me of rose ;_;
Nah, probably not unless you went through a dummies guide and then learned a whole bunch of libraries and shit.

Yeah, but you'd have to actively work for it for almost the entire day every day. I'd ask why so I could help you, but I'm afraid you're going to respond with "I lied on my resume...."

Would be pretty pathetic if it takes you 2 weeks or more.

But you're from Sup Forums, so you'll probably just watch some shitty indian guide for 10 minutes per day between fapping sessions.

if you spend every waking moment studying it like your life depends on it, yeah probably.

You'd want to kill yourself by the end of the first week probably.

That's a tranny. "She" also owns a discord server for pokephiles and furries.

ITT: People who learned C++/Java from YouTube videos and don't know the difference between different paradigms or languages.

nice!

Not OP but what's the difference between OOP and regular programming?

>"she" is a tranny
>that'll show user for touching himself to androgynous beings
It's like you don't understand how penises work, just post moar.

There's not really "regular" programming... There's a bunch of different paradigms, all of which fit different purposes. Just like how a boat is a great vehicle to travel at seas, while a car... isn't.

In Object Oriented Programming (OOP) you have objects; an object is just like an object irl, like a lamp, it has properties (color is white) and methods (turn off, turn on). From there you build lots of objects, and have them interact with each other -- once you understand the concept, it's pretty beautiful when executed in a good manner.

However, it's never this simple in languages which are class-OOP (such as Java, or C++... OOP is a behemoth of a subject...) where you need to understand all the keywords and concepts to a great extent to be able to write good and reasonable code.

In "regular" code (imperative or procedural) it's more like a recipe... you get your ingredients, and mix them in a set order, then you're finished.

side note: it's entirely possible to write OOP-code in C, but it's not designed to, and as-such it's a PITA to do :P

Lol

Yeah, if statements are so hard to grasp

Continuing on , I know of someone who's taken a PhD in comp sci with their thesis just on OOP. As I said, OOP is a behemoth of a subject.

OP here, can anyone teach me how to loop in C# (winform app) ?

I have a test in less than 24 hours...

Is this bait?

"If this, then do that, otherwise do something else"

Is this hard to grasp?

read sicp

The stupidity of this post makes it obvious it's a troll.

>so hard to grasp
No one said anything about grasping the concepts, the OP says MASTER the basics, your faggot ass probably hasn't even mastered putting on shoes yet.

I'm not trolling you stupid faggot

>has a test
>doesn't even know the basics

ur fucked lmao, just accept your failing grade

int i = 0;

while (i < 5) {
System.Console.WriteLine(i);
i++;
}

for (int i = 0; i < 5; i++) {
System.Console.WriteLine(i);
}

int i = 0;

do {
System.Console.WriteLine(i);
i++;
} while (i < 5);


Good luck :-)

no

>System.Console.Writeline

What would you write instead of console.write in a windows form application?

Also, could you please explain to me what you've just written..?

>know the difference between different paradigms or languages.
Where do you learn this?

3 hours a day, 7 days a week

for seven days. Shit, you can learn all of that in one evening if you aren't an idiot. I say start with python, Sup Forums might not agree, but most of those fags don't do anything besides little coding exercises from their textbooks

wtf man why are u asking this... low tier bait...

I learned the basics of C++ in about a week, and I was 16 then. It not that difficult

Some of the fundamentals:

Basic data types:
bool //(or boolean) Contains 'true' or 'false'
int //(or integer) A whole number between negative 2 billion to positive 2 billion. No decimals
double // A number with decimals\


Variables: Named values that are typically assigned with some data type (like an int) and a value.
bool hasDoneTest = true;
int timesDoneTest = 10;
double maxTestScore = 95.5;

Arrays/Lists: Are collections, in C-like languages they typically are a collection of a single data type. For example a list of class scores. In coding you can define an array like the following:
int[] scores = new int { 80, 56, 14, 10, 90 }


Array/List indexes: a position inside the collection that the user can access to get a value. Arrays always start with an index of 0.
print(score[0]) // will output 80
print(score[1]) // will output 56
...
print(score[4]) // will output 90


Another way to define the array:
int[] scores = new int[5]; // Says that the score array is an array of size 5.
scores[0] = 80;
...
scores[4] = 90;


If statements: Checks if something is true or false. You can use operators (such as equals to, not equals to, less than, greater than), booleans, functions that return values.

if (scores[4] > 50) {
print("Pass");
} else {
print("Fail");
}

im dead fucking serious. You don't write "console.writeline" in winform app... why would I even troll about something like this?

Sorry for late response, thought the thread had been removed(?).

I've picked up on some of the differences just from being a fucking sperg and spending my time reading up on programming instead of socialising with others. But something like Wikipedia can be a decent place to start at...

I use a rule-of-thumb that most languages are imperative/procedural (which includes OOP), Lisp and Haskell are functional, and proLOG is LOGical.

ITT people not understanding the difference between becoming comfortable with the basics and mastering the basics

You can become comfortable with the basics in a month easily. Mastering, or being able to use these in every situation without a second thought takes more time

You're digging yourself deeper and deeper...

System.Windows.Forms.MessageBox.Show("you seriously don't know how to use google do you?");

does that mean, OOP languages are better?

For some things. There's no end-all be-all computer language in existence, every language has a use case, even esoterics.

Thanks!

At least you added some comments unlike this faggot.

Who is this semen demon? What's her name?

You can't take a hint? Do your own research, idiot :)

master? no. understand? yes.

Read the filename, trannyfucker.

OOP has its uses, just a plane does. But you wouldn't fly a plane to the store just to pick buy some milk; you'd walk, take your bike, or drive.

woah

stop being rude :( I thought it was a girl

Hi shocktens

Hi Shocktens

Tranny get out reee

Loops (such as 'for' and 'while') are repeatable blocks of code that allow you to do things like go through a whole array in a few lines.
Printing every item in any sized array can be done with three lines:
for (int i = 0; i < score.length; i++) {
print(score[i]); // Outputs the current iterator
}


For loops contain the following: for (initial value (var i = 0); condition (i < score.length); i++ (what to do at the end of the loop code))
The iterator value (i) starts off with 0 and adds 1 every time the loop code (in between the curly braces) has run.

This will print the pass/fail status of every test

for (int i = 0; i < score.length; i++) {
if (scores[i] > 50) {
print("Pass");
} else {
print("Fail");
}
}


While loops consist of just a condition; no initial value or increment at the end of the loop is required.
This is the equivalent of the for loop above.

int i = 0;
while(i < score.length) { // While the value of 'i' is less than the number of items in the score array
if (scores[i] > 50) {
print("Pass");
} else {
print("Fail");
}

i++; // Add one to the 'i' variable
}

Thank you!

For your info you're at the top of your mental skills around that age

>trusting anyone on Sup Forums to give you legitmate advice

You sure you don't want to actually research this self, assuming you're not a troll? It won't take long, you know.

Source on this juice masseuse?

while(true) {
// insert code here
}

If you already have a solid grasp of high school mathematics then yes.

Absolutely yes,
Programming is easy in theory

Its the language specific stuff that takes a long fucking time

>Shocktens

Where the hell do you guys get pictures of Shocktens? He doesn't post anything anywhere I can find.

Can you post the discord link?

IBM used to say they could turn anyone into a programmer in 6 weeks. For "programmer" read Sammy/Susie COBOL.

OOP is dead. Learn generic programming instead.

A month?

A week?

For the basics that you described, you can master that in a day. They're pretty simple concepts, though you would have to find a competent guide that isn't long and drawn out.

this guy is wrong, you can "master" OOP in a day if you don't get caught up with theory

>this guy (You) is wrong, you can "master" OOP in a day if you don't get caught up with theory

hahahaha, and these people are the same kind of people who remember every single number in a phone book, right?

Only if you're a genius which I doubt you are. I mean, it took me 3 months to fully grasp the "basics" of OOP and I'm a pretty fast learner.

>Absolutely yes

Don't believe his lies, OP. Programming is HARD. And depending on the particular language and task it's even harder.

If you start learning at age 16, you'll never be the best that you could be. If you start learning at age 25, it will be the same as learning a second language and you will never get the accent quite right.

Also, if you aren't good at MATH, don't even bother trying to learn.

Learning to "code" is like learning what the "+" and "-" symbols do in math problems.
At the end of the day, you are still having to solve a problem. People who can't solve difficult problems will never be successful programmers.

Wow, you're ignorant

fucking this

this

I don't give a shit and that's not what I asked.

someone screencap this for beginners. this is like 10 youtube tutorials in 2 posts

>:P
Kill yourself redditor

retard alert we got a fuckin retard alert

One can master it in a day or two if one is not mentally retarded.

Okay, thanks for letting us know you are here.

The first two are programming general.
The 3rd is a data structure.
The 4th is OOP exclusive.

So you can't master any of them, your question is fundamentally flawed.

project harder retard

another one reveals itself

Okay, thanks for letting us know you are here.

another one reveals itself

Nicely trolled. Can't wait for them to come back crying about their grade.. :D

Okay, thanks for letting us know you are here.

another one reveals itself

well said

What's the math involved on something like Javascript, PHP, C++?

i'm from reddit

took me 3 hours to learn everything

READ A FUCKING BOOK
TAKE NOTES
PRACTICE
EZ

>methods
>programming general
Wew lad

he probably interpreted methods as functions, which makes sense... his post still stands

...

In OOP you delude yourself into believing you've found a silver bullet, and tell everyone how it's about modularity, loose coupling, and encapsulation while writing objects that have to directly touch each others state.

But seriously, OOP is an engineering philosophy supported by a few key language features. The idea is more or less to map each part of the business logic to objects (real or imagined), and model your program like that. Logical and elegant in theory, but in practice it's rarely as simple as the examples you see in the textbook.

Like most (all?) paradigms there are good uses for it, but if you try to use it 100% of the time, in a sufficiently complex program it's going to be a clusterfuck.

Have to agree with this. I prefer C++, but for a first time programmer, I think Python is the way to go.

Really?

I wouldn't think so. I feel like I am much better at learning in general than I was then.

meant to reply to

>"master the basics" in one week

You can learn the basics and use them. "Master" implies a lot of experience. I wouldnt say that one week is a lot of experience

The problem with new programmers is their parents tend to have failed.

There was a time every child had mastered if statements.
>if you do X Im going to bust your ass

Kids now dont really understand this cause and effect conditional statement.

This. This is spot-on.

Would you recommend watching this playlist to me?

youtube.com/watch?v=vNHpsC5ng_E&list=PLF206E906175C7E07

Generally, did design patterns help any of you?

About a couple of weeks (not full on either have a full time job) self taught for an upcoming degree..it was python if your interesred

>one month?
nigga try three hours