How to learn and practice coding efficiently

magoo763 profile image Magoo763 ・1 min read

Hey guys, aspiring coder here. I was wondering what is the best way to learn and practice coding? I know to look at tutorials and online lessons, but what should I do to practice whatever new lesson I learned whatever it is about a new html tag or java-script function, etc? Is there any websites that will help you learn and practice what you learn? When should I start trying to build something? Because it doesn't make sense to try to build something after only learning some basic java-script lessons and html lessons because that wouldn't be enough to make something, right? I could be wrong but I don't know. What if I only learn a more coding about java-script? Honestly, I just what to know what is the best way to learn and practice coding efficiently. And, how many hours a week should I practice it. And how much knowledge do I need to know to build something after doing some java-script lessons. And if there are any good websites that can help with this goal of mine.

Posted on by:


markdown guide

Welcome :)

Quick note: "JavaScript" not "Java-script"

In my opinion you should be building "real" things as soon as possible. Don't spend too much time on just learning theory, syntax etc. However, never stop learning this stuff. I'm still doing courses and reading books regularly 6+ years in. Take the little but you've got. HTML + JavaScript and build something. It could be a basic portfolio site, a fan page for your dog or a list of your favorite coffee shops, whatever. That's what makes code so cool.

The reason I advocate for building "Real things" as soon as possible is that it helps you prioritize what concepts and information you ned to learn. What's relevant to the kind of work you want to do.

As well, when you start looking for work, being able to speak to more "Real" projects is always better conversations than just discussing tutorials you've done.

You could start by adopting a tutorial or trying to clone something simple out there. Maybe a tiny simple JavaScript game in the browser?

Happy coding :)


Thanks for the advice! I'm hoping by the next 2 years or so I can get into the tech industry.


Depending on how much time you can invest you can get there sooner. Known several people who broke into successfully solid jobs in a year of hard work.


Lemme tell you my API story.
So I learned asynchronous JavaScript, promises and all API stuff. I followed the tutorial enjoyed it and felt productive.
But after some time I forgot everything and I was like “Why the hell I forgot it”
Then I again learned API but this time something was different, I made a project, a weather application and then I made an app which used pelxels API.

So my takeaway from this experience was learn basics and then make some projects.
Projects that might sound simple or useless to some experienced devs or anyone like make a counter, calculator, tic tac toe app , random password generator or a fully functional e-commerce app.

While learning anything have an end goal in mind and learn enough to complete the goal don't try to learn everything.


You can take a course - like vanillajsacademy.com/ - or watchandcode.com - or you can pay a mentor to teach you - or you can use a book like this one: youtube.com/watch?v=YHEFuQdnXEE&fe... - but you'll need lots of practice - and not just memorizing the methods etc. (or all of the above)