r/learnprogramming • u/7forest • 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.
Change the code so it prints “howdy”.
Print two alerts. One that says “whats up?” and “take care”.
Continue with the tutorial (usually goes to variables). After a few problems, print “hi” from mental recall.
Since we probably encountered variables by now, what will the code print below? Why?
greeting = “howdy” print(greeting) print(“greeting”)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!
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! ;-)