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

2

u/squeamish_ossifrage Feb 12 '19

Thank you thank you! This is very cool, very helpful! In some ways I think I'm already following a portion of this advice; I've been really watching people on the twitch channel and talking to them about their projects and asking them to show me BP's and how they work and little by little I'm gleaning more information about the system. I've also joined some of the notable discords, though I haven't spent much time in chat there. I also have been streaming myself with a "learning" tag so anyone who is so inclined may jump in and offer assistance which has been great so far. Compound that with lots of tutorials I feel like it's a good crash course, though there really is no substitute for time & experience. So whether I feel I'm getting something or not I know there is an incredible expanse ahead of me before I can get to anything that remotely resembles a comfortable spot. But I will heed your advice and I will keep asking do whatever I can to learn as much as possible. And in doing so I will hopefully find some sort of mentorship which fits my goals.. because I do have a lot of audacious goals in mind for my career in game design, so if I work hard and meet the right people I truly believe I can accomplish them.

Thanks again for all the advice you've offered me so far

1

u/StoicGrowth Feb 12 '19

Well thank you for the discussion! The motivation works both ways, positivity is so contageous. This little talk boosted me too :)

From the looks of it, you're going places! That's the spirit, 110%. You do get it.

Read books (whatever, just books, long-form content, written or audio doesn't matter), do exercise, and the world is yours.

2

u/squeamish_ossifrage Feb 13 '19

So Glad to hear it. I'm streaming my newbie progress on twitch if you want to chat sometime. I'm mostly working on Blueprints which is the visual scripting language in Unreal Engine but I will probably look into learning Cpp soon

1

u/StoicGrowth Feb 13 '19

Not really my turf, hehe. I'm more into web, infra / servers / network (linux, nginx, load balancing, etc), containers, that sorta thing. Looking to build businesses around dev/ops services for SOHO and SMBs eventually.