r/learnprogramming • • Feb 08 '19

Two mistakes that trap new programmers

Most aspiring programmers get trapped and fail to move forward. As a teacher, I get to observe how some programmers keep moving forward. Here's two signs you are trapped.

Trapped coders focus on anything but coding.

Trapped programmers love to debate which language or framework is best. They spend their time figuring out what to learn and end up learning nothing at all. So let me answer all your questions.

Learn Python.

But what if I need to learn C#?
Learn C# after.

Isn't Javascript the language of the future?
Learn Javascript after.

My developer friend told me I should learn C++ because all languages are based on it.
Learn C++ after.

New programmers fear they could be wasting time learning the "wrong language". Programming is the fastest industry in history. Good developers learn new languages and frameworks on a yearly basis. Three years from now, your knowledge will be outdated. If that scares you then find a different career.

Trapped coders following directions too well.

Trapped programmers follow tutorials like mindless robots. Copying pasting code doesn’t teach you anything. Imagine starting a python tutorial that taught you how to print “hello world”.

print(“hello world”)

Most people copy/paste this and move on. If you were my student, I'd push you farther.

  1. Change the code so it prints “howdy”.

  2. Print two alerts. One that says “whats up?” and “take care”.

  3. Continue with the tutorial (usually goes to variables). After a few problems, print “hi” from mental recall.

  4. Since we probably encountered variables by now, what will the code print below? Why?

    greeting = “howdy”
    print(greeting)
    print(“greeting”)
  5. Fix the code below so it prints “hello”.

    Print(hello)

By the end of my exercises, you would have a strong idea of how print statements work. A simple line of code can create a myriad of problems. Most people brush past it only to get stuck in the future. I always recommend finding a school or mentor for guidance. If you can't do that, be proactive with your learning and keep at it.

Good luck!

1.7k Upvotes

349 comments sorted by

View all comments

Show parent comments

57

u/PC__LOAD__LETTER Feb 08 '19

This is exactly the kind of analysis-paralysis circlejerkery that OP was warning against. It’s a fine language for learning. You can do a lot with it. End of story.

0

u/[deleted] Feb 09 '19

[deleted]

1

u/givetonature Feb 11 '19

Well said.

2

u/KwyjiboTheGringo Feb 09 '19

OP also said to learn python first, so imagine they had some reason for that.

-2

u/PC__LOAD__LETTER Feb 09 '19

Maybe. But it’s a direct contradiction of what they had literally just stated, which is that language doesn’t matter.

7

u/NotWorthTheRead Feb 09 '19

He’s writing for an audience of people who don’t have the experience to compare languages in any meaningful way, and who (by virtue of the fact that they’re interested in coding) might be the type of personality that likes to take a lot of factors into consideration.

He’s giving perfectly practical advice, and while it’s contradictory in a strictly logical sense, so are a huge number of things humans do. It’s useful, and it’s not going to change.

The long form version of what he’s saying is, ‘at this point in your development, what language you pick doesn’t matter as much as picking and sticking to a language at all. Getting started is going to bring you such an overwhelming benefit over the ‘what language should I use’ analysis paralysis that you almost might as well throw a dart and pick the language it lands on. I recommend python. There are reasons for that, but they might just confuse you, so I’m asking you to take me at my word, and you’re free to take another one, just so long as you pick one rather than second guessing a choice you haven’t made with low information visibility.’

But that’s not punchy, so ‘it doesn’t matter, pick python’ gets written down.

Are you going to be late to your anniversary dinner because you ask which tie to wear and your wife says, ‘it doesn’t matter just wear the blue one’ because it implies a logical contradiction?

-2

u/PC__LOAD__LETTER Feb 09 '19

I think it’s worded extremely poorly if that’s all of what he was trying to convey. I appreciate that’s the meaning that you projected onto OP’s words, but my point is that words are all that we can go by, and that it’s not hard to understand why this advice might be confusing to a true novice.

2

u/DrewSuitor Feb 09 '19

Yeah but you can also miss a lot of fundamentals.

6

u/ColdPorridge Feb 09 '19

You can have an incredibly successful and nuanced career using nothing but python, so I’m not sure what fundamentals you mean

14

u/DemonicMandrill Feb 09 '19

He's refering to JS, not python

3

u/DrewSuitor Feb 09 '19

Yeah but I’m talking about JavaScript

0

u/[deleted] Feb 09 '19

So which is it? Good for learning, or you can do a lot with it?

Not the same thing.

0

u/PC__LOAD__LETTER Feb 09 '19

Ok, well in that case the best language for learning is Scratch.

2

u/NotWorthTheRead Feb 09 '19

HyperTalk. RIP.

0

u/[deleted] Feb 09 '19

For you, sure.