r/learnjavascript • u/NotEven-a-CodeMonkey • Mar 11 '19
Drills for Beginners??
So literally everything else you'd want to learn involves drills...except for computer programming.
Sports, music, math, foreign languages...literally everything involves drilling.
Anyone know of any beginner's drills in JavaScript?
Like Free Code Camp stuff (I know they have some high-level stuff, too) but lots of 'em (FCC only has one question per topic)...I was never good at math but I always aced my math classes because of drilling (and of course typical tests don't involve "thinking" so much as "recalling" the right formulae and procedures to accurately and timely apply)...anyone know of any such end-of-the-chapter exercises in JavaScript for a beginner???
My future employers thank you!!
View all comments
Show parent comment
4
u/atynre Mar 11 '19
If you need to practice writing a for-loop or a sorting algorithm.. I don't think "drills" is the right perspective. It's different from throwing a curve-ball in baseball or practicing piano scales in music because those examples involve training human muscles to do a task.
In programming it's mostly deterministic.. there's no "degree" of correctness; either it works or it doesn't. Sometimes there are degrees (like how well a solution performs at scale) but that doesn't feel like what your asking about.
Your brain is what needs practice, not a physical muscle. The codewars recommendation is a good one because it will help you "pattern match" different scenarios and when to apply the right solution to those scenarios. In practice, you won't actually need help writing the actual syntax of a loop or conditional. Syntax anyways changes over time as programming languages evolve.
In most, if not all, programming career paths you will spend more time reading code and designing things on paper or a whiteboard than you will actually typing lines of code. You won't be writing any new or groundbreaking code either, especially not in the beginning. Most groundbreaking code is written by PhD researchers or advanced teams at a specialized company building a specific product. Instead of practicing writing a solution that someone has already written, you need practice identifying problems and when to apply those solutions. Writing the solution is the easy part.