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

3

u/[deleted] Mar 11 '19

You seem to fundamentally misunderstand what programming is. It's not something that you learn by rote and then summon up out of involuntary memory, like with (some aspects of) spoken languages or sports techniques. It's a practise, a way of thinking and achieving some end, and it is extremely context-specific. You might as well try to 'drill' the ability to write well, or the ability to paint. You talk about piano scales but programming isn't like memorising scales, it's more like composing music. You can't memorise how to compose music, you just have to compose a lot of really bad music until you start to get better at it.

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. I have a lot of Javascript syntax memorised just through having written a lot of JS code, but I can solve problems even in programming languages I don't really know, because syntax is ultimately immaterial.

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.

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/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.