"<h1>Learning How to Code</h1> <p>One question that new programmers tend to ask is the number of hours they should be devoting daily to learning code. This question comes, usually, from independent learners who chose to learn code at home; to learn code for free!</p> <p>When studying code in college, this question wouldn't usually be asked since professors will guide their students and give them advice.</p> <p>That is why, at DevBrains, we give you the same advice an instructor would.</p> <p>No matter what <strong>coding language</strong> you are learning, this blog will certainly help you along with the rest of our <a href="https://devbrains.tn/blog">blogs</a>.</p> <h1>How Many Hours a Day Should You Spend Learning Code?</h1> <p>First of all, the period needed to master coding will depend hugely on You:</p> <ul> <li>Your approach</li> <li>Your motivation</li> <li>Your concentration</li> </ul> <p>However, it would take an absolute beginner an average of 3-6 months to get a hold of the basics of coding. This period is dependent on your pace.</p> <p>I was once reading an interesting conversation on <a href="https://www.reddit.com/r/programming/">Reddit</a> when I saw someone encouraging new programmers to spend more than 8 hours a day coding, saying that they should be coding "For as long as they're able to."</p> <p>With all due respect to whoever follows this approach, I'd like to clarify something: along the side of being a programmer, one has a life:</p> <ul> <li>Workout</li> <li>Friends</li> <li>Family</li> <li>Hobbies.....</li> </ul> <p>and under no circumstances should a person neglect their personal development for the sake of learning anything! Speaking of overwork, remember to always put your <a href="https://devbrains.tn/blog/how-to-avoid-burnout" target="_blank">mental health</a> and state of tranquility before everything.</p> <p>Now let's get to the point, what is the <strong>Perfect Number of Hours you Should Spend Learning Code?</strong></p> <div style="background:#eeeeee; border:1px solid #cccccc; padding:5px 10px">The answer is: It depends on your level!</div> <p>For example, if someone were to start working out, their trainer would set their training hours depending on their progress. And the same goes for coding.</p> <p>It usually goes as follows:</p> <h2>1- Absolute Coding Beginner</h2> <p>When starting, you will be encountering lots of new information. Many people give up at this stage out of fear of what seems like an enormous amount of course material to go through.</p> <p>At this stage, you should be learning step by step. If you spend too much time at once, you'll probably lose focus, and even worse, lose that drive that brought you here in the first place</p> <p>Let's say, for example, that you're learning a new language, for the sake of this blog, it's German. The first thing you would do is learn the basics: Alphabet, pronunciation, ...</p> <p>If you try to learn all of that in one day and then jump into reading, then well, you're going to hit a <a href="https://devbrains.tn/blog/how-to-avoid-burnout">burnout</a>!</p> <p>That is why the average amount of time you should be devoting to learning code should be <strong>30 minutes to 1 hour per day.</strong></p> <p>It would be great if you start from <strong>20 minutes</strong> for the first few days ****if you are starting from scratch.</p> <p>I know this amount may seem too little, but trust me, this advice will be your winning card. Most of the process of actually acquiring knowledge happens when you're concentrated, then when you're resting. So make sure you hit these two at once.</p> <p>Note: By learning code, I refer to:</p> <ul> <li>Online workshops</li> <li><a href="https://devbrains.tn/tutorials">Tutorials</a></li> <li>Books about coding</li> <li>Problem-solving</li> <li>Working on a project ...</li> </ul> <p>So this time is not limited to pure coding.</p> <h2>2- Intermediate Coder</h2> <p>Let's get back to the example of learning German. Once you master its alphabet, learn to pronounce words, memorize basic vocabulary, you shall be able to read some small paragraphs, or start a small conversation.</p> <p>What happened is that your brain started adapting to that new language, and this new information is no longer threatening you.</p> <p>Once you hit that goal with whatever programming language you're learning, you should be increasing your daily dose of code to <strong>an average of 1 to 3 hours</strong>.</p> <p>There is one tip that I once caught in an online lecture, and it's to never end your learning session when you're tired: always stop before you get to that stage. That way instead of saying "It was a tough learning day!" you would be saying "This trick is amazing, looking forward to trying it tomorrow!"</p> <p>Even if your online session is not over yet, you can pause it, and resume it the next day!</p> <h2>3- A Fluent Programmer</h2> <p>Back to our German learner. Now that you spent a few months learning, and practicing the language, you're getting close to reading it fluently.</p> <p>This is why you should be adding a few hours daily. So instead of 1 or 2 hours, <strong>an average of 3 to 4 hours</strong>/day will be perfect!</p> <p>Needless to say, concentration is a must, so whenever you feel like your brain can't take anymore, a 15-minute break and/or a beverage shall restore your energy.</p> <p>At this stage, you shouldn't just be practicing, because you've already done that, instead, you will be focusing on solving problems. It doesn't matter if you spend a whole week solving one problem, as long as you're concentrating on the task. Active learning is the one thing you should be looking for now.</p> <h1>Conclusion</h1> <p>One sec, before you start practicing:  If you're based in India and need any help with your website, why don't you drop at this amazing website: <a href="http://www.itforallsolutions.com" target="_blank">IT For All Solutions</a>? </p> <p> </p> <p>You must realize that each person has their own pace of learning, so you can master the basics of coding in 3 months following our advice, or in 6 months, and there is nothing wrong with that.</p> <p>I learned from programmers that their number one secret to success is patience, and if you have that, then I see an aspiring future programmer in you.</p> <p>Remember that no matter how hard something may look, if you take it to step by step, it will be as easy as ABC.</p> <p>Now, dear reader: Have you started learning code? Or you're yet to begin? Why not follow our piece of advice and let us know how it turned out?</p> <p>Drop a comment below, and don't forget to share this blog with your friends!</p> <p> </p>"