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

5

u/desal Feb 08 '19

If all he said was just pick a language, then people struggle with what to pick. That is the point of the post. There is no need for this thread / argument. It proves the point of OP. Instead of having this conversation about what OP said or should have said (in your opinion), just get to work.

0

u/[deleted] Feb 09 '19

I think #3 in OP's list should be "avoid reddit" for reasons that have been demonstrated in this thread.

-3

u/PC__LOAD__LETTER Feb 09 '19

The fact that OP contradicted him/herself with a non-sequitur after giving actual decent advice is the reason that this is being discussed. No one is actually arguing that Python isn’t a good beginner language.

He/she could easily have phrased it as “Just learn a language. Not sure which one? Python.” How hard is that? As-is, the comment is potentially demotivating for others who have started trying to learn programming and chose something else, and misleading in that it puts Python on a pedestal in the minds of beginners. It’s a confusing contradiction of his previous point, which was actually a good one.

3

u/desal Feb 09 '19

Blahblahblah you could be coding

0

u/PC__LOAD__LETTER Feb 09 '19

You could be too. We’re discussing OP’s post in this thread. That’s what the comment section is for.