How many hours a day should i learn to code?

On average, you should spend 2-4 hours a day on coding. However, efficient coding practice is not about the depth of time spent writing or learning codes, but is based on the individual's consistency over time. I usually spend 3-4 hours a day at most. I know there are people who can spend twice as much time, but I think after 4 hours you reach a point where your performance drops off.

When I was studying music, I attended a few seminars on "productive practice" and over-practice. For me it was more effective to practice for 3-4 hours in a concentrated way than to spend 8-10 hours a day. I was more efficient and got better results. I try to use the same approach with coding.

Let's say you practice a craft, like programming, for 40 hours a week. There are about 52 weeks in a year (not counting leap years). So, if you have what it takes to be an outlier, you would have to practice 40 hours a week for about 5 years to become a master of your craft. This should make you the Mozart of code writing.

As with anything in life, you have to be patient with the process. All you can do is prepare and have fun while doing it. There is not much to say about this, but it is essential to point it out as many of us want to get to the destination quickly and forget that it takes time, and for that you need patience. With passion and focus, an hour or two a day can go a long way over several months.

Whether it's through programmes like our After-Hours Bootcamp, or using online resources, it's very possible to find a way to balance coding with your busy schedule. It's not going to be the gold standard, but it will give you an idea of how to set a realistic and, more importantly, sustainable plan when it comes to learning to code each day. I've read stories of people learning to code and getting a job while also having a full-time family job and my hat is off to them.

William Sandoual
William Sandoual

Subtly charming travel evangelist. General coffee scholar. Avid zombie enthusiast. Hardcore travel fanatic. Infuriatingly humble internet fanatic.