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

14

u/StoicGrowth Feb 09 '19 edited Feb 09 '19

If you're real serious about it — because it's commitment on your part — here's a quick run down of possible ways, among others probably but I guarantee these work if you keep at it (any domain, any age, but we'll speak tech here).

First understand this one thing: why do some people 'mentor'? Because they just love it. They love the domain, they love the doing, they also love elevating others (if they're really smart about it they know it's how they elevate themselves in the best possible way too). So you're not asking, not only, it's an exchange. You come in with all the interest, the passion, the will to learn and make cool stuff (more on that below), and you dig deep so you ask real questions (don't judge that yourself, just be confident that a good student always asks good questions that people who know love to answer).

These aren't just words but tangible things.

  1. You need to actually make stuff. Nobody wants to mentor an armchair reddit poster. You'll pick other people's interest when you actually make real things and encounter real problems; that's exciting to solve.

  2. You need to show up. Ideally physically to meetups etc. Find people around you. This is your best pool of mentor candidates, these guys hang around where it's at. Also digitally of course, and research where your domain is happening (some stuff is mostly on Slack for instance, other things are typical IRC candidates, Discord is getting strong, there's always github because tickets, etc.) Be present, be active, in the heart of your domain's community. Just exist. Participate.

Now if you want to actually kill these two birds with one stone: OPEN SOURCE PROJECTS. There are reasons why everybody and their mother suggests that to newbies, and the above is just two among many.

It's almost guaranteed, I kid you not, that you'll find a mentor or mentor-like figures by the droves if you get active in a decently active open-source project. "Mentor" doesn't necessarily imply age: it's about skill. So you'll find "veterans" leading open-source projects, there are thousands of them with very valuable experience to share and a project to drive, often on their own time, so they would really benefit from a great apprentice, believe me. You just have to go out there and show up and talk and see what's what. It's a very social field / era.

Don't forget #1, we're here to make stuff, not teach or learn or be friends even if we do all these things on the way. There's this focus which entails great relationships in open-source: by talking with project leads and really really trying to understand best what they need and seek from you and doing just that, you'll inevitably become someone people want to help (help you help them help the project). It's always about the work. When you've proven a good learner, maybe a good coder already for some things, you'll slowly become part of the project, and your questions will be less about learning and more about improving things: you'll be light-years ahead of where you are now, and this can be next summer.

Just my 2 cts mate, best of luck to you.


TL:DR: Make stuff, show up, ideally both at once by joining an open-source project (bonus points if the leads are actually living nearby you so you can meetup or whatever on occasion). The mentor-s will appear magically because you'll be obvious mentee-material. ;)

2

u/squeamish_ossifrage Feb 10 '19

dude thank you so much for this answer. I really appreciate such a detailed response. I am totally dedicated and willing to put in as much effort as I can.

How do I get involved in an open source project? I've been spending a lot of time watching Ue4 streams on twitch and watching tutorials, but so far I have yet to find someone I can just haphazard throw my questions at when I get stuck on a tough problem or want to do something that there is no tutorial for. Of course I'm still just learning and trying to go through the bootcamp aspect of learning the engine as well as messing around and just making shit with what I learn.

Hopefully I can make some connections and get a mentor in the near future though finding one nearby is gonna be tough as I'm in a pretty rural area, but traveling a couple hours isnt out of the question.

Again thanks for such a great response.

2

u/StoicGrowth Feb 11 '19 edited Feb 11 '19

You're very welcome!

You seem to have a good mindset about it, that's the way to go imho.

There's not much to add, I'm trying to write something up but it's rambling, nothing you can't read in a ton of articles / books out there. So I'll just take 1 angle.

Passion. Think of it in their shoes: you're doing this work on some project, for instance a music player, and here comes "this guy". Passionnate, newbie but dedicated and learning "averagely or better" (brain works). They're humble (try to understand more than criticize), they ask questions (hey why do this that way and not like that? what's this file for?) which, as they get better, help us think better of the project. In so many words, "fresh blood", of the best kind. Like in the movies — only the babies we make are software and there's little physical touch involved beyond testing phones, right? :p

Well I can tell you that as long as he sticks around, I'll be so happy to see that guy log in to our slack or forum or git every day and essentially hand him over some work and explain whatever he needs to know to do it (and more! don't we all love talking about the things we know....), hoping that eventually we're just partners on the project more than trainer/trainee.

So have this long-term vision, it's always solid even when it doesn't pan out. Gives substance to you coming around, "not here just as a tourist, I love the project and I may stick around if things go well" — you never really say that but it's implied in the way you talk, plan things, etc.

You know, in free stuff where nobody gets paid (hobbies, open source, etc), I've seen people like this over and over. Awesome new fresh blood out of nowhere. Anecdotally for me it's like 1 out of 100 or less that becomes an actual mentee. I've been mentored like that too, people just love the doing, the passion, and the showing up always, always, always. We would always prefer a "normal" guy always there, than an elusive genius-star we can't rely on.

It's presence + passion for this specific thing we're doing. This mix is a powerful storm that turns empty fields into populated citadels.

So I hope you got the essence of it. We're all in this together, mentor/mentee only makes sense —hell the whole freaking idea of education, formal and informal— because we're all in this civ together trying to build it for ourselves and the next gen. So you take part in that, not asking, but proudly contributing you know? This time, this year, you're the newbie, but you're no less valuable! Trust that. Be freaking bold in offering your services and interest. Go do the things you want to do and be 100% sure you'll get there.

And find that great project you just feel passionate about. Maybe a music player. Maybe you're more serious and love containers. Maybe you're artsy just want to improve colors in some terminal app or re-design a website you love... Idk, whatever turns you on, man. What would you want to leave as a legacy to this world, as a first feat in your coding career? What makes sense now, for you, to dedicate hours?

Just find the people behind the project and talk. First rule of showing up is to actually make contact once.

Also, once you've found a possible home, read all the code from that project. It'll take hours, days, months, whatever. Just be methodical and ordered about it (ask!) and read. it. all. It's better if the code is well written (for your own sake as a learning dev) but the point here is to really understand how the software works. You'll be working on it, or copying it, so you need to do that at some point. You don't even need permission to do it if it's open source, you can read them all right now. And don't be shy about asking questions (wherever, forum, reddit, slack, discord, IRC...), just quote the code or files and tell what you understand, what you don't (just show that you've worked already, not asking for a shortcut, but avoid long write ups, be concise and to the point).

People will see that you have done the work. That they don't need to hand hold you, which makes it all the more pleasant to help you overcome obstacles. We always root for a good challenger.

Last thing: it's OK to voice that you're looking for advice, for coaching (a less loaded way of saying mentor, it's less intimidating socially). Just don't be needy about it (it's not an excuse or justification for your mistakes or for not trying to learn anyway!), simply honest that you want to learn the job.

You can go about it directly, like: "hey thanks so much for explaining this to me. Still learning, so is it OK if I ask you about the project sometimes? I'll make sure to respect your time, I'd really appreciate it."

Eventually you guys have a budding friendship / coaching vibe going on (it's all based on the fact that you actually work together on something, especially unpaid to do so, trenches together and all that, it can't be faked). It's about as good as mentorship gets in real life 99% of the time. The proverbial mentor figure is a rare, rare thing that often requires a whole other level of commitment, and not something we all wish for truth be told.

Oh, last thing (for real). A funnily meta (and crazy smart) way to begin is to write documentation for the project. It forces you to really understand the code to some level, so it's a great exercise, and a stupidly good "excuse" to ask as many questions as you want. And it's grunt work, and we value people who do the grunt work and do it well.

And I'm rambling. Sorry. Hope there's some perspective that helps. I'm mentoring you, right here right now, if you hadn't noticed, on how to best approach opened projects from my experience. That's a win for you! Now go do it again by asking questions about code to the people that wrote it! ;-)

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.