There are 1.3 billion results in Google for the search term “learn to code”. Be it Google, Facebook or Twitter, you’ll find millions of ads sponsored by some sort of programming bootcamp.
Press enter or click to view image in full size
They promise engineering jobs, high salaries and the pathway to becoming the next Mark Zuckerberg. But sadly Mark is not where he is because he went on a 12-week coding bootcamp and Jack Dorsey didn’t take his company to IPO because of a summer retreat in Thailand learning HTML.
Press enter or click to view image in full size
While I believe that programming skills will become essential in a world dominated by computers, I don’t think that dangling a carrot that advertises a $400,000 p.a. graduating salary is the way to go. So let’s dispel some myths and talk about all the lies around learning to code.
Lie No. 1 — Learning to Code is Easy
The biggest lie in the programming world is that learning to code is easy.
Because learning to code is hard, just as learning to water-ski is hard (face-planting on water at high speed can be surprisingly painful).
Learning any new skill is difficult when you don’t have an existing structure to latch on to. For example, if I were to teach you about WWII, at least you’ll already know what a “war” is and the implications of a war involving many countries. But whether if it’s programming or wind-surfing, if you’ve never done anything similar, you’ll have to start from zero. And that’s hard.
Having taught over 4000 students at the London App Brewery, including employees from Google, Linkedin, Facebook, one thing is for certain:
Very often coding tutorials start off painfully simple. Teaching you how to print “Hello World” in chapter 1 but then presumes you’ll know how to set up a cloud database in chapter 2. For example, this is how they would teach you to draw an owl:
If everybody tells you that something is easy and yet you are really struggling to understand it, then you’ll feel really stupid. Feeling stupid doesn’t help anyone. Often, we get a room full of students who are all struggling to understand the same thing, when one person finally asks about it, the whole class rejoices and realises that they are not alone in their “stupidity”.
“Physics is either easy or impossible. It’s impossible until you get it, at which point it becomes easy.”
That’s why we never, ever tell our students that programming is easy. In-fact we keep repeating that what we are teaching is hard. It’s really hard. No seasoned programmer will ever tell you that programming is easy. They’ve made enough bugs, failed enough unit tests and spent enough days reading documentation to tell you that. So the next time someone tells you that programming is easy, smile and slowly back away with a knowing look on your face. (This will most likely creep the hell out of anyone).
Lie No. 2 — Learning to Code is only for Geniuses
I’ve found that amongst our students, their beliefs about coding are very binary. Some believe the marketing, i.e. “Coding is Easy” and other believe that only mega-geniuses who descend from the coding Gods can learn to code.
The latter is usually the after-effect of jumping into a coding tutorial that is way, way above their current competency.
Press enter or click to view image in full size
A great coding curriculum is good at ramping. Like pizza dough, you should be stretched consistently on a coding course, but if the person doing the stretching is overly enthusiastic, you will break.
Through years of testing and remodelling, here is our most effective curriculum structure, you can use this to guide your own coding journey.
Step 1 — Use a tutorial that teaches you core coding concepts. e.g. Functions, Arrays, Variables, Data Types, Loops, Conditionals.
Step 2 — Challenge yourself to make a version of that tutorial by yourself. Switch it up. Change some bits and bobs or remake it by yourself.
Step 3 — Learn the programming theory behind those coding concepts only after you’ve used them a couple of times and have seen them in action.
Step 4 — Ramp up the difficulty, find a tutorial that teaches you some more advanced topics. e.g. Objects, Classes, Optionals, Delegates, Interface etc.
Step 5 — Rinse and repeat.
For our students, this has been the most time-effective way of learning to code. For example, this is what the journey of a complete beginner becoming a proficient app programmer would look like when mapped out. Everything is designed, nothing is left to chance.
Press enter or click to view image in full size
Lie No. 3 — More Code is Better Code
At the water cooler, you’ll often hear programmers talk about how many lines of code they’ve written last night.
“I just blasted through twenty thousand lines dude”.
How did that saying go? It’s not about the size of the module, it’s about the motion on the debugger?
If I can write the same program in 50,000 lines or 5,000 lines, which one would you prefer to maintain?
The size of a program doesn’t really say anything. So don’t worship the overly verbose programmers. Instead, try to be elegant in your code writing.
“I didn’t have time to write a short module, so I wrote a long one instead.” — Mark Twain’s programmer brother.
So refactor your code on a regular basis. Or even better yet, avoid writing crappy, verbose code in the first place.
Press enter or click to view image in full size
Lie No. 4 — There is a Perfect Language for Learning to Code
Before starting to learn to code, a lot of people go on a quest. It’s a quest for the perfect beginner friendly programming language. In fact this is one of the most popular questions about programming on the Q&A site Quora.
People will often offer their two cents. For example, “you should choose dynamic over static languages, because they’re more flexible and fun”. Or “learn Swift because Swift developers earn more than any other type of programmer”.
But the truth is, there is no perfect programming language to start learning with and just because you learn a particular language doesn’t mean that you’ll sign your life away in blood and be forever bound to develop in that language.
At the end of the day, different programming languages mostly just have different syntax. If you understand the fundamental programming concepts, you can pretty comfortably convert from one language to another.
When considering which language to learn, the most important question to ask yourself is “what do I want to do with it”?
Want to get into data science? The best libraries are written in python, so learning Python might not be a bad idea. Want to make interactive websites? Javascript is probably your best bet. Want to make mobile apps? Then you’ll be looking at learning Swift (iOS) or Java (Android).
At the end of the day, a programming language is only a tool. It’s more important to train yourself on the right tool for the task at hand rather than learn something just because some girl on the internet said it was their favourite language.
Lie No. 5 — Everybody Should Learn to Code
Programming is fun. Programming is awesome. It’s a really special combination of creativity and logical thinking. It’s like having a garage and getting to build your own custom motorbike. Put on some race tyres, give it a custom paint job, tune the engine. But you don’t need a garage, or pay for parts, all you need is a laptop and a world of possibilities lies in front of you.
But there are so many other cool things you can do too! For example, you could be a painter, or even a chef. How dull would the world be if there were only programmers? (How dull would “24” be if everyone listened to Jack Bauer and the series got renamed to “1 Hour”?)
Not everyone should learn to code, just as not everyone should become a chef. Programming is only one of the ways in which the skill of logical thinking is honed. But it’s not the only way. For example, you could take up Go and try to be our only human hope in beating AIs of the future. Or you could get into philosophy and challenge yourself with logical conundrums.
Unlike the glorious potato salad, not everyone will enjoy programming. But everyone should give it a try. Because you never know, you might end up getting addicted to it like me. In programming, I found a tool that allowed me to bring things into existence that would have never existed before I cracked open my laptop and sipped on a flat white.
So how can you find out if it is for you? Try it out. Make something, break something and if you find yourself coding into the night, neglecting the latest episode of Game of Thrones. Then you’re probably a programmer.