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

39

u/Barrucadu Feb 08 '19

Because it doesn't really matter what you start with, any reasonably well-documented language would do, and you'll be learning more than one over time anyway.

-3

u/JBlitzen Feb 08 '19

Because it doesn't matter what language you start with, so it's vital that you start with Python and not anything else.

...wait, what?

20

u/johnmollb Feb 08 '19

OP wasn't trying to make the point that learning python as a first step is critical, they were just trying to make the point that you shouldn't get caught up in deciding what language to learn. You should just start learning one.

14

u/desal Feb 08 '19

Dont waste your time, they are missing the point and running with it.

→ More replies (8)

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.

→ More replies (2)

-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.

-3

u/therealjoggingpants Feb 08 '19

This makes no sense with OP's context. You're saying that it doesn't matter what you start with and OP is saying that you have to start with python.

17

u/Barrucadu Feb 08 '19

This part of the OP seems to directly agree with me:

New programmers fear they could be wasting time learning the "wrong language". [...] Good developers learn new languages and frameworks on a yearly basis.

Beginners waste time worrying about learning the wrong language, but you'll be learning new languages frequently, so it doesn't matter what you start with.

-1

u/therealjoggingpants Feb 08 '19

Right. But OP explicitly says to learn Python and learn anything else later. If his point was that you should pick a language and stick to it before moving on, then he did a terrible job at that. Not everyone starts with Python

16

u/Barrucadu Feb 08 '19

No, I think the point is that *you* (the learner) shouldn't pick, because you don't really have a way to make that decision, and will likely spend a lot of time agonising over it. So the OP picked for them. That doesn't make the choice any less arbitrary.

2

u/[deleted] Feb 08 '19

For the record, I agree. Two traps of learning code: the first trap is not starting with Python.

Why start with Python ? No clear answer has been stated.

3

u/nemec Feb 09 '19

the first trap is not starting with Python

That's not at all what OP said. The first trap is, "coders focus on anything but coding" - including picking a starting language. His advice is, if you are beginning to learn programming and don't know what language you want to pick, learn Python. In the end, no one gives a damn what your first language was and many programmers learn more than one language anyway. You can't waste time learning the "wrong" language anyway (yes, even the shitty languages will still teach you something useful).

“One day Alice came to a fork in the road and saw a Cheshire cat in a tree. ‘Which road do I take?’ she asked. ‘Where do you want to go?’ was his response. ‘I don’t know,’ Alice answered. ‘Then,’ said the cat, ‘it doesn’t matter.”

→ More replies (1)

3

u/just_give_me_a_name Feb 08 '19

I think it was a hypothetical. Learn X.

If not, then people can learn X and still follow the rest of the advice.

2

u/desal Feb 08 '19

Nowhere does OP say you have to start with python. He says to start with python. As the rest of the post says, people get stuck trying to choose what to start with. He is just simplifying that. Plus python is easy to learn, useful to know. It's a great starting point for people. Just picking something and getting to work is key. That's the point of the post

-3

u/PC__LOAD__LETTER Feb 08 '19

He literally says, in large bold letters, “Learn Python”.

A better statement would have been “Just pick a language.”

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.

→ More replies (4)

-2

u/therealjoggingpants Feb 08 '19

He literally says "LEARN PYTHON" in bold font

4

u/desal Feb 08 '19

You are stating my point. He didn't say you have to learn python. If you cant decipher from the rest of the post that it's just a simple choice to get people started instead of debating what to learn, then you're kind of proving OPs other point. People argue about what to learn instead of just getting to work. Just like this exact thread. Just pick something and get to work. No need to argue.

2

u/therealjoggingpants Feb 08 '19

YOU are the one arguing...... am I in the fuckin twilight zone? What the hell is going on? If what he meant was "pick a language and learn it" then why the hell would he preface the point with LEARN PYTHON in big bold letters?

3

u/desal Feb 08 '19

Oh I must be arguing with myself in your direction, my mistake /s

Again, that's the point of the post. instead of arguing about what to learn, just pick something and learn. Python is just a starting point and all of this time spent bickering about OPs advice could have been spent learning/coding something

1

u/therealjoggingpants Feb 08 '19

Lmao

I don't code 24 hours a day. Thanks though. Take your own advice

2

u/desal Feb 08 '19

... I was just trying to explain the point you appeared to miss, but okay

→ More replies (2)
→ More replies (7)