Do's and Don't of Learning How to Code
If only I had a penny for each time I’ve heard that question, I’d be… ; well you know the rest. Being a developer seems to be the new cool and everybody wants a piece of the action. But the major stumbling block between novice and mastering the craft (or God mode as I love to call it) is that so many would be developers do not realize that,wait for it…
learning how to code is a journey and not a destination.
There are no shortcuts through the woods, no quick fixes, no instant learning. If you wanted to boil rice, you would have to put it on fire and wait till it’s done. You can increase the flame to ensure it gets cooked faster, but the bottom-line is it doesn’t get done instantly, you still have to wait (You’d think I knew a thing or two about cooking).
To truly become a developer, you need three things:
- Hard Work
- Practice
- Patience, Patience, Patience
See what I did there, see how I iterated the third one three times for dramatic effect and to show… I’m talking too much again aren’t I. Well, patience is the most important thing you need. Stop envying that dev you are looking up to, he’s been practicing for years. What you need to do is settle down and know that you are in this for the long haul.
To help you on your journey, I will talk about things you should do and what you shouldn’t if you truly want to learn. Let’s start with the dont’s.
Dont’s of learning
1 Listening to people before trying things yourself:
I’ve seen a lot of people make this basic beginner mistake, but don’t forget that people tend to exaggerate a lot. You hear things like programming is very difficult, especially that Java. Chai.. If it took this guy 5 years to get to this level, will I ever get there.
Dude, stop listening and start learning. We learn at various paces, besides what works for Mr. A might not work for Mr. B. So block out the noise and start learning, get a feel of things yourself.
2 When you get stuck never give up:
I know devs that have been stuck on just one issue for weeks. Myself, there have been times when I have questioned the meaning of life itself because of one tinsy bitsy coding problem.
The truth is real devs never give up, we just back up, see the problem from a different angle and tackle it again till it gets solved (or we just use stackoverflow, actually we use stackoverflow most of the time). If you know anybody that claims to be a dev but abandons a problem because it is apparently unsolvable, please unfollow sharp sharp.
I have a system of tackling such issues. When I get stuck, I just do things to take my mind of programming for a bit. Watch a movie, play some games or even better interact with the outside world (This doesn’t happen often by the way. Geeks right?). By the time I get back to work, the problem is usually as good as solved (except for some really stubborn problems, like a genetic algorithm issue I faced. Really difficult to kill, but you can see its head on a plaque on my github).
3 Piling on language after language:
Ever heard of the phrase “Jack of all trades master of none”. I remember when I started learning, I had friends that started at around the same time, but they eventually gave up programming and moved to something else. Why you ask, Information overload (or StackOverflow as my teacher used to call it).
There is so much the human mind can take. When you overload it with information, retention becomes difficult and worse of all learning becomes tedious. Learn a new language and revel in it, enjoy it like a warm embrace in cold weather or like a dog in its own feaces! (Whichever sounds better to you).
After learning a new PL (Programming Language), don’t move on to the next one just yet. Build things with it, get comfortable with it, fall in love with it, let it be your first thought in the morning and the last before you go to bed (I’m not sure the Mrs will approve though). Don’t listen to that urge that you are now good at it until you have built something truly impressive with it. When you have truly mastered that language, only then should you move.
4 Taking on difficult projects early:
When we start learning a natural language, like English. You don’t start from making sentences do you. Neither do you start solving differential equations at kindergarten. You need to ease into it just like every other language.
Start learning with simple things like hello world and math problems. Then move up to something like a calculator. My rule of thumb is this, the task has to be something challenging but at the same time something I am truly capable of handling.
5 Too much tutorials, less practice:
Consuming too much information without using actually practicing is a really bad idea. You should have your environment setup and ready to practice every time you watch or read a tutorial. Consuming too much information without practice is like someone planning for a journey without actually stepping out of the house.
Another dangerous close relative of information without practice is proceeding with tutorials even though you don’t understand the previous step. Whenever you don’t understand something, ask other devs or go back to the previous step and listen/watch again.
6 Comparing yourself with others:
Never compare yourself with others in anything you do, especially programming. Bad, bad, bad idea. I’m not saying you should not have mentor you look up to, by all means do, I know I did and it made my learning much faster. But never compare yourself, its one of the most important things to note on this journey.
Remember that those you are comparing yourself to have probably had more time to practice and are also very different from you. For example, I realize the best way for me to learn is more practice less tutorials. I have a friend that needs to watch tutorials step by step before practice. This does not make either of us less of a dev, it’s just how we are uniquely wired. You need to know thyself and find what best suits your method of learning. Plus patience plays a big part.
7 Using libraries or frameworks too early:
Libraries and frameworks are great, they give you a real boost and help you add functionality that would normally have taken weeks to develop in no time at all. But, there is a time for everything. Making use of libraries too early really makes you lazy and skips a lot of concepts you should learn. What happens when you get stuck on something as simple as form validation and you can’t solve it because angular formly has always got your back. Take the time to learn concepts and do things manually first before you move on to making use of libraries or frameworks.
Another bad effect of using libraries/frameworks too early is that there are things you won’t learn and won’t be bothered to go back and learn because you already have a shortcut to getting it done. There are concepts in mongodb I didn’t learn because Frameworks like sailsjs,parse or firebase had my back (Thanks but no thanks Firebase).
Do’s of learning
1 Programming is more about thinking :
Programming is based on logic. Its more about how you think about and see things than actual coding itself. Programming requires you to have a certain state of mind, It requires you to find innovative solutions to problems, it requires you to become the compiler itself. You need to be in tune with this state of mind (Harness your chi) if you want to go far.
Someone once said the quicker you begin coding, the longer the project will take. You need to learn how to pick up a pen and paper first and plan out each detail before you write a line of code. When building a house, the wise architect doesn’t just start without a blueprint to look at, he doesn’t design from his mind. He draws the blueprint first and only then does he start work.
2 Less is more :
Simple is good, infact simplicity is best. Don’t pile on knowledge, Instead patiently take your time to split up your learning into small bits till you understand. Make sure that function/class does exactly one thing and nothing more, name that variable appropriately (You should read about the SOLID principles).
When building your practice program, take your time to perfect a functionality first before moving on to the next one. Remember there is something called versioning. All functionalities do not have to exist all at once, you can always add more later on. Just make sure you make things as simple as possible and you will be surprised at how easy programming is.
3 Practice, practice, practice:
My programming teacher once told me he practices for nothing less than six hours a day, I didn’t really know why but I took his advice anyways and It really really paid off. Learning to code is like going to the gym, you need to exercise your mind or you will forget concepts, stagnate and you won’t get very far.
There are thousands of tutorials out there, but all that reading will be wasted if you don’t practice. Remember programming is practical based and there is no replacement for actually rolling up your sleeves and practicing. Learn to put in the work. Practice daily without fail and you will be better for it.
4 Learning by teaching:
Trust me this is the most important tip of all, it beats everything else I have written so far or that you will read anywhere else. I haven’t written a line of Java code in about 4 years now, but I still vividly remember how to code in Java just for one reason, I taught others. Infact I taught people how to program so much that I got the name tutor Doyin from my students. Nothing beats teaching others, it might seem like wasted labour at first, but wait for it and let the feeling settle in, you will love it or not, but regardless still do it.
When you teach others, you are actually teaching yourself. The beauty is that you don’t even need teaching skills. You don’t have to even teach per say, you could just talk about it to someone or something (yes I said something, you can tech your pet). When you teach what happens is that you stop being knowledgeable and you begin understanding. When you understand how something works, even if it gets twisted a thousand times it can never confuse you.
I read somewhere that what you understand is yours, what you know is shared.
So start teaching today.
5 Value why over how:
Learn to value why something is done the way it has been done over how it is done. Why will lead you to more learning till you reach true understanding, while how will only help you learn how it’s done and that is it. When you understand why something is done the way it is, you will find that you truly understand it and can use the same concept in different forms. But when you only know how, you will be able to apply a quick fix and you might have to learn it again next time.
6 Learn with a goal in mind:
When learning, don’t just learn for learning sake have a endgame in mind. Don’t set huge moonshot goals, simple achievable goals will do. You can set your goals by each step or you can set goals for the entire learning process.
An example of a learning goal could be that, “I want to be able to build an inventory software after I am done learning”. A step goal could be that “I want to write my own function without looking at the tutorial once I am done learning this part”.
7 Google is your best friend:
Never be ashamed to ask for help during your learning process. Ask for help from more advanced programmers, but most especially ask for help from google. There is no shame in that. What could be shameful though, is you just binge copying code without remorse or regard. When you find a solution, remember to understand why it works then apply it.
Be careful though, google can make you lazy. Make sure you have tried this problem yourself first before consulting.
8 Find yourself a mentor:
One thing that really made learning programming easy for me is that I had great help from the start (Actually I had help from two of the best). Even though I showed great promise from the start (Not trying to blow my horn or anything, but then again why not), having people to push you in the right direction really goes a long way into shaping how you think about things and how quickly you can learn. They have been through most things you are just facing and just sharing their experience with you can make a whole lot of difference.
9 The Language Does not matter:
Another question most people ask is what language they should start with. That is actually the best part, any mordern language will do, but make sure it is Object Oriented (OOP).
All you need do is determine which type of engineer you wish to be. Mobile dev (Java or Kotlin), Web (Php, Js, Ruby). Any language is good, just start learning. When you are accomplished in one, trust me it won’t be difficult adopting others.
10 Health is wealth:
Never become so engrossed as not to take care of yourself. Remember to eat, exercise and get a good amount of sleep, so as to keep up your levels of concentration. Programming isn’t going anywhere but your health could be affected. What use is learning when you can barely understand. So take good care of yourself.