How to Practice Coding and Get Better at It

Bryl Lim
3 min readAug 6, 2021

As a complete beginner, coding can be intimidating and quite hard to learn. In this article, I am going to list the steps I took to practice it and how I eventually got better at it.

1. Understand the fundamentals

They say that without a solid foundation, you’ll have trouble creating anything of value. This is especially true in programming, you must have a good grasp of the basics.

These include:

  • Programming Environment
  • Data Types
  • Variables
  • Keywords
  • Logical and Arithmetical Operators
  • If else conditions
  • Loops
  • Numbers, Characters and Arrays
  • Functions
  • Input and Output Operations

Once you’re comfortable with the basics, learning different programming languages will not be difficult because just like human languages, programming languages also follow grammar called syntax. There are certain basic program code elements which are common for all the programming languages.

2. Take coding challenges

Practice what you have learned and test your comprehension and analytical skills. Try to properly understand questions and break the problem down into chunks.

The more your practice, the more you learn.

Learning to code is a skill, and you can compare it to doing sports. If you want to be good at it and perform well at work, you should practice a lot.

Try to practice coding daily, during your lunch break or after work. Even if it is only for one hour, if you create a habit and stick to it, you will see daily improvements. However, do remember to take breaks. It might seem counterproductive, but getting burnt out will not do you any good.

“Repetition is the mother of learning, the father of action, which makes it the architect of accomplishment.”

Here are some websites I recommend to practice coding:

3. Read existing code and apply it to your own

Everything you read about code will improve your programming skills.
You can learn a lot from other people’s code. You can find experts in your field or use GitHub to find code that’s similar to your own.

Find alternative and better ways to structure your code. This is called “refactoring”. Replace for loops with Array looping methods like map() and forEach(). Use ternary operators and so on.

It’s exciting to discover how other developers write code and solve problems.

4. Start building real projects

Projects are a great way to improve your coding skills. You get to apply what you have learned, encounter new challenges when developing your project, and find solutions for it.

They push the boundaries of what you already know and give you a practical exercise in whichever language you choose. It doesn’t have to be a full-stack application. It can be a very small app with minimal design which does just one thing.

Here are some beginner projects you can do:

  • Personal Website
  • Todo list
  • Number generator
  • Conversion tools
  • Simple calculator

These projects are simple, even if they’re not easy to make at first. You will walk away from with two things: a portfolio piece you can use to prove your ability and a better understanding of how powerful programming can be.

Some of these examples will use different languages like Java or JavaScript, but you can make them in any language you feel comfortable in.

As you progress, start incorporating other libraries and frameworks like React, Angular, or Vue.js to build bigger projects.


You can save this article and refer to it every time you need to become a better developer.

Remember, you don’t have to know everything! It can be helpful when you don’t understand something. You can reach out to your team or friends. If you don’t know anyone you can ask, you can join programming communities or groups online.

Now go ahead and start coding!