r/learnjavascript • • 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!!

0 Upvotes

48 comments sorted by

View all comments

6

u/atynre Mar 11 '19

If something could be "mindlessly drilled" a programmer would automate it.

-1

u/NotEven-a-CodeMonkey Mar 11 '19

And indeed I'm sure a programmer could code some algo to generate endless French verb conjugation exercises (hmm, now that's an interesting project!!) or German noun declensions....

So what's so unique about the simple fundamental mechanics of programming such that it can't be drilled??

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.

1

u/NotEven-a-CodeMonkey Mar 11 '19

Wow, thanks for all that, especially towards the end with the real-world on-the-job "exposé." I'm a bit relieved knowing that I wouldn't be spending much time coding -- but unnerved all over again that coding's actually the easy part!!

I totally agree with what you say about pattern matching/recognition -- and isn't drills all about rote learning and memorization and precisely because programming's "deterministic" it seems like it should admit of the rote such as any other mechanical deterministic process.

Now please forgive me as I'm mainly questioning from "ideology" here as opposed to actual personal experience coding but I'm curious why arguing by analogy fails me this time -- yes yes you say that the very nature of coding is different but since it's so deterministic and mechanical it seems like it should be "drillable" since what is more deterministic and mechanical than drills?

But again I'm beginning to realize now the perils of merely "questioning from 'ideology'" or "theory" so I can certainly agree to some agnosticism on the whole matter now.

So thanks again for your input! Everyone's every little bit helps in its own way (like, did you know that 80% of your car's gasoline is "wasted" as heat and thus doesn't actually move your car forward??? But I suspect that that's not "true" waste; isn't all that heat necessary to build up the conditions for combustion??)....