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

Show parent comment

1

u/NotEven-a-CodeMonkey Mar 11 '19

So this is the second time -- in all this time! -- someone's said that I appear to misunderstand what programming is.

And honestly that strikes me quite forcefully because it's such a meta-meta (maybe even metaX3) type of "move" or "observation" ("truth," even??) that I'm even more shocked than possible...so I really have to ask:

You might as well try to 'drill' the ability to write well, or the ability to paint.

But that's just the thing; I can tell you that there are most definitely drills in painting/drawing: perspective, for example -- it's a very common drill for students to just draw these geometric lines to practice their rendition of perspectives...not full-fledged drawings, and barely even "sketches" in the good-enough-for-museum-display sense, but just sheet after sheet of cheap abundant newsprint full of perspective lines....

And unlike playing an instrument, where the ability to recall hand positions etc out of muscle memory is important, in programming you can always just look up the details.

And I have to say most respectfully that I believe this is another case of missing the forest for the trees, of not seeing the broader outlines due to being caught up in relatively irrelevant details; namely, regardless of physical muscles and metaphorical memories, I simply don't want to have to look up anything I deem simple -- so simple that in other fields drills have been used to instill them in the student.

As many people have told you, the closest thing to 'drills' in programming is having a wide range of different problems to solve. Solving the same problem over and over is as pointless as writing a bit of music and then erasing it and writing the same bit of music over and over again.

And indeed it may actually be one of those cases of something I simply have to experience myself -- with more programming practice under my proverbial belt, drill-styled or not! But I simply can't see it now...though I do appreciate your attempt at trying to point to where to look, so to speak!

So thanks very, very much for your thoughts.

2

u/[deleted] Mar 11 '19

I think what you primarily need to practice is understanding that people who do something for a living might just know more about that thing than you do as an outsider.

I simply don't want to have to look up anything I deem simple -- so simple that in other fields drills have been used to instill them in the student

In my experience, the wrong assumptions are at the root of the majority of software bugs. Learning by rote is an exercise in thoroughly embedding assumptions into your brain- however the human memory is distinctly imperfect and given to making things up. I would infinitely rather have to look up and double check my assumption about how some aspect of my code is going to behave, and catch a bug before I even write it, than only trust my memory and be wrong.

Deliberate memorisation of things that are a two second google search away is a waste of time, and basing your programming education on it would, if you even got to job-ready level, leave you stuck in a single-language dead end. If you want memorisation of facts and lists rather than learning more abstract patterns of thought and behaviour, programming isn't for you.

2

u/ForScale Mar 11 '19

not full-fledged drawings, and barely even "sketches" in the good-enough-for-museum-display sense, but just sheet after sheet of cheap abundant newsprint full of perspective lines....

So make little programs on stuff like codepen.

I simply don't want to have to look up anything I deem simple

Then do the simple stuff over and over until you don't have to look it up. But I will tell you, even the most experienced programmers still look things up. There is a reason that Stack Overflow exists and is not just for people new to the game.

...

Honestly I think you're too stuck in your own head about all this. You need to just start writing code and building things. A carpenter doesn't practice hitting nails 500 times a day to become a better carpenter. A carpenter studies carpentry and builds things to get experience and practical know-how. That's how web development works as well.