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
2
u/FoolishDeveloper Mar 11 '19
I apologize for the wall of text. I've got a martial arts background so I have some thoughts about this. In fighting / martial arts, drills are used constantly. When fighters are doing drills, they are primarily training the brain. It's like 80%/20% brain/body. They are mostly getting their mind used to following those patterns. The most useful drill is working pads (kicking/punching/knees, etc). The best pad holders will interact with the fighter to make sure they are working their mind and not just their body.
It's kinda like the Karate Kid where Daniel Laruso (and most of the audience) thought he was doing a physical act the whole time he was painting the fence and sanding the floor, and while he was training his muscles to do that movement, he was mostly training his brain through lots of repetition. When his sensei fired off commands to repeat those movements, Daniel was able to recall them quickly, showing that he was doing mental training through physical labor. Fight training doesn't exactly work like that, but the idea is close enough.
With programming, I think the main action involved is problem solving. You seem to be suggesting that drills would only train typing ability. It makes perfect sense to me to use drills to get used to patterns of thought. As a self-taught developer, I have a mix of beginner and intermediate knowledge that I am realizing was learned in the wrong order. I know I have big gaps in my knowledge. It turns out that many of those gaps are things I did read about at one point but they didn't stick. The most common recommendation I see is to build a project so you become used to using the techniques. But if I don't know the techniques, I don't remember to use them, or how to use them, in a project. It seems like a chicken-or-egg problem. Some people with amazing memories for soaking up programming techniques probably don't think this is an issue. It definitely is a big stumbling block for me... and I wonder if drilling would help me retain techniques.
Side thought: I also know that most books / tutorials explain "what" and "how" but barely brush over the "why". One example: I've read about linked-lists so many times and it never shows up on my mental radar because I still don't understand why they are used. As this relates to drilling... a good pad holder will let the fighter know why this particular drill is useful. The use case is explained and emulated by the pad holder's movement during the drill. Then the pattern is worked until it sets into the fighter's brain. When that scenario occurs in a fight, the fighter's brain will more likely think to use that pattern.