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

3

u/just_give_me_a_name Feb 08 '19

What's wrong with this post?

For an /r/learnprogramming post I think this is helpful. You aren't offering other help.

11

u/desrtfx Feb 08 '19

This post is less helpful than any single paragraph in the FAQ.

Python may be the current entry language, but that absolutely doesn't mean it is a must to start with it. Personally, I think that any explicitly typed language (Java, C#) is better suited as a first language because there is less "magic" going on.

The part about practice is just as useless. Simply repeating the same over and over will not improve one's understanding. Only venturing into uncharted areas will help improve.

The worst part of it that OP claims to be a teacher. All the advice is horrible from both, a practical (as in professional) and from an educational point of view. I've been teaching long enough and have created plenty of my own course to identify a bad teacher from more than a mile.

0

u/[deleted] Feb 08 '19

[deleted]

3

u/just_give_me_a_name Feb 08 '19

I think you're viewing this as a seasoned engineer. Sure, the sentence is wrong but your rebuttal is also wrong. This sub is focused on learning programming.

This post is aimed at over coming some of the major mental obstacles. It's trying to tell people to get out and learn. I don't think that everyone who knows how to code knows what industry they want to work in.

When my friends ask me what to learn I give them the same response; go learn programming. I don't tell them to pick a career path then pick a language and stick with it.

0

u/[deleted] Feb 09 '19

[deleted]

2

u/just_give_me_a_name Feb 09 '19

Honestly, I think we're arguing the same point; the most important thing is to learn.

Telling someone to "Learn X" is wrong but I don't think we can assume someone will know their industry before learning what they love.

2

u/AbhorDeities Feb 08 '19 edited Feb 09 '19

The most unhelpful thing is them telling you to learn Python. No. Learn the language that your field is using. If your area is all C#, it doesn't make sense to learn Python. If your area is all Java, it doesn't make sense to learn Python. Learn what it is applicable to what you want to do, period. They should've just said to pick a language and learn that. Then move to another language afterwards.

6

u/just_give_me_a_name Feb 08 '19

This sub is about learning programming. It's about fostering a curiosity learning to write code.

To me; this post says: Pick something and learn. Stop getting hung up on the language choices.

I don't expect people to understand "If you're area is all C#". If they did, why wouldnt they be on a C# sub instead of a generic one?

2

u/AbhorDeities Feb 09 '19

But to me, it says to learn Python and then move onto another language. Which is just wrong in my opinion. I have nothing against Python personally; I just don't think it is the defacto first language like this post is expressing by the big bold "Learn Python". Then it proceeds to follow with other languages and telling them to learn it after.

As for the your second point, they are most likely in this sub and not the other, because this is generally the first stop shop in learning programming. I misspoke earlier though, I assumed that they wanted a career in the field. My advice is only applicable if you're looking for a job. Some people really are strictly hobbyists.

As for the not expecting people to understand part - while, they may not know it now; that is when we tell them. "Google for the jobs in your area, find out which language is the most prominent, and learn that one".

Overall - it seems like this thread is split on the "Learn Python" part. No one disagrees that the first language doesn't matter, it is more just trying to clarify what the OP meant. Some people are reading it differently than others. Some are reading it as the OP stated, others are reading into it.

1

u/therealjoggingpants Feb 08 '19

this post is far from helpful. Reeks of some "I'm smarter than you and this is the only proper way to do things" post

Also his second piece of "advice" is to.. learn...? Wow. Thanks..

3

u/just_give_me_a_name Feb 08 '19

This post is telling people to stop caring and jump in. I don't find anything wrong with that. Its excellent advice to starters, jr devs, and sr. devs.

I've been doing this for a while and have avoided learning things because of curves (clojure) but the overall message is positive.

-4

u/[deleted] Feb 08 '19 edited Feb 08 '19

It's nonsense. Just because people post something consisting of letters doesn't make it meaningful. And if you look at my posting history here, you will see that I do help people.

And in the last 6 months you have never posted on learnprogramming, but now you do. Why could that be?

1

u/Smallzfry Feb 08 '19

Maybe they follow it to learn, but have never felt the need to comment or post? I follow several subs where I simply read the articles because I can't contribute to the conversation.

-2

u/[deleted] Feb 08 '19

Maybe. But I wasn't asking you. And via Occam's Razor the number of upvotes that the witless OP got suggests something else - sock-puppets or organised upvoting.

1

u/Smallzfry Feb 08 '19

Counter-argument: posts and comments with positive votes tend to get upvoted regardless of quality, I think that's a simpler argument than that OP is using organized voting. And by Hanlon's Razor, I'm claiming that OP (and Reddit) is stupid rather than acting maliciously.

1

u/just_give_me_a_name Feb 08 '19

Posting history doesn't validate your opinion any more than being right 10 times before makes you right this certain instance.

Who is upvoting it? Me, because I had the same mistakes. I picked other techs but dove it.

Learning new things often involves overcoming mental obstacles. I think thats the point of this post.

As to do your need to validate my credentials? You sound like one of the pretentious engineers that I have worked with. My major gripe, after having been in it for almost a decade, is that you will occasionally run into self validated asshats who feel the need to wave a piece of paper as if it makes your opinion already correct.

Fuck your resume, work history, post history, etc. If you're not adding to the discussion (in this instance; trashing a post without counter points) then keep your opinion to yourself.

I'd rather have a curious jr. dev then a pretentious sr. dev.