Skip to content
Home » Blog » Tips on learning how to code

Tips on learning how to code


Some tips on learning how to program whether you are learning a language or a specific framework etc. You can learn more here the Top places you can learn to code for free.

How do I remember what I learn

How can you retain all that staff you have learned previously and it sticks in your brain. Don’t remember what you learnt just understand it. Cramming something is way different from understanding it.

All code is different.

Grasp the content and try other ways of using the code.

Be an effective learner not a passive one. A passive learner takes note of something he or she has learnt while an active learner practices what he has learnt. It’s kind of a dynamic way of learning.

Take action

Run the original code exactly how it is. Understand the logic of the every line and character. If theirs one piece of code or function that you don’t understand. Google it and figure out what that line does and how it does it. Because you not knowing that line of code may break you in a future situation.

Tweak it and make some simple changes. You can start by adding some extra functionality to it.

Rewrite a similar situation using same type of logic.

If you just remember the code you are not going to be able to make something new, you will only be able to repeat that same thing over and over.

When you are learning something new, you are always going to make mistakes or maybe a lot of mistakes. Make and fix them. Fixing errors is the best thing you can do when learning in programming. Make google your best friend in any situations. Websites like stack overflow have answers to different error messages you will be getting. It may take awhile but finally you will get what you are looking for.

Use references

As we said in the first tip of not remembering but understand the code. But sometimes you have to go back and check the correct syntax especially when you are working with more than one language. Sometimes am reading JavaScript and all of a sudden am into PHP you can get a little bit confused, so if you have multiple references that you can go back and check the exact structure and exact syntax and you can do it in many ways like;

  • Keeping text files of snippets
  • online tools you can use to store snippets like Gistbox, Csnipp, Snippleaf documentation.
  • blog posts
Read the top learning methods of self-taught developers here.

Don’t stop coding

Always code every single day either 20 or 30 minutes. You have to always keep this staff fresh in your mind. if you don’t code like for or a month or two, you will forget a lot and remember forgetting is much easier than learning.

Learn something new everyday. You can wake up an hour earlier and watch a couple of tutorials, that can help you a lot.

Stay updated with current trends and technologies and most specifically in programming.

Common principles

KISS (Keep It Simple Stupid). You don’t need to make things more complex than they need to be. Don’t try to show off to make something complex just to make it complex.

Remember it’s not just a matter of writing code, you should also think about maintaining it. The more complex the code, the hander it is to maintain.

DRY ( Don’t Repeat Yourself ) if you have to or more principles of code that look similar and you just have different variables, just put it in a single function, method, class and so on. Make it as simple as you can.

YAGNI ( You Are not Going to Need It).

You should implement what you only actually need, especially if it’s a big project.

Focus on the key features that you absolutely need and later on think about other staff.

Stick with it

I think this is the most important tip of all.

There are going to be times when you are going to be asking yourself whether you should be doing this? Whether you are not smart enough.

what you should know it’s normal, I also still feel the same way up to now. The most important thing you should do is just stick with it.

  • Have confidence.
  • Stop doubting yourself.
  • Fall and get back.
  • Be passionate about it.
  • Never give up.


That’s it for this post, hope you enjoyed it feel free to leave a comment below.

Thank you and may the Almighty God bless you in your tech career.

Leave a Reply

Your email address will not be published. Required fields are marked *