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

13

u/Barrucadu Feb 08 '19

Are you intentionally missing the point of the OP?

Beginners often spend a lot of time agonising over what language to start with, but it doesn't matter in the long run. By saying "start with Python", that decision is made for them. If you say "just pick a language!", then they'll waste time trying to decide on the *best* starting language.

5

u/desal Feb 08 '19

Yes they are missing the point, dont waste your time.

2

u/PC__LOAD__LETTER Feb 08 '19

The issue is that OP offers good advice, and then directly contradicts it. “Just pick a language, and if you aren’t sure which to pick, Python is as good as any” would have been a much better way to state the point.

0

u/Barrucadu Feb 08 '19

Sure, it was poorly worded; but I don't think that makes the post totally wrong.

1

u/PC__LOAD__LETTER Feb 08 '19

Agreed. But we can critique things in parts. Hardly anything is totally right or totally wrong. I think that’s all that people are discussing here - not seeing a lot of disagreement with regards to the previous point of analysis paralysis being bad.

-2

u/JBlitzen Feb 08 '19

Are you intentionally missing my point?

The OP has not taken a single shred of the reader's interests or goals into consideration, they have simply projected their own love of Python onto the reader.

It's simplistic and circlejerky "advice" which simply doesn't hold any water to any experienced practitioner in the field.

2

u/don_one Feb 08 '19

You can see the same love of Python directed into the defence of him saying learn Python. Zealots, everywhere.

I like Python but it seems like it's making some lose their objectivity.