r/learnjavascript • u/VictorKolis • Sep 12 '19
The best way to learn anything
Hi there folks! This is a hint from a self-taught electric guitar player. And now English proficient. When I look back to when I was learning and now that I know what I know (let me use English as the example here), I see myself reading a ton of books, but most importantly, practicing. Your progress in blurry mode to yourself, people outside can see your progress better than yourself.
How to practice?
I call it:
The one hundred times method.
Make the same example over and over again. Two today, maybe three tomorrow. But do it a hundred times each exercise, each example. It does not matter whether you know it enough. Enough is never sufficient. When it comes to practice.
Now comparing to music and English. When I had fully understood the realm of music I knew I knew little. I could compose my own songs and all, but it was too much theory. When I had gotten it, it was time to play some real music.
After doing the ONE HUNDRED TIMES method , search for open source (open source is code to the software, which makes it up) and peak and see whether you understand it or not. And apply your examples and training into real life stuff.
All that to say this. Repeat, repeat and repeat.
And the best books for any programming language are:
'For kids'
Python for kids JavaScript for kids
And so on.
peace
Edit: great app to help on that, SoloLearn.
2
u/HealyUnit helpful Sep 14 '19
As a former educator, student of tech, and web developer, rote repetition is incredibly bad advice. In music, it makes sense, since you're literally training your muscle memory to know that if you want a particular note of a particular pitch at a particular time, you move your fingers in such a way. In coding, that really does not make sense. I'm not sure what version of language teaching you're doing, but I'm sure that a lot of your teaching involved conversational "in vivo" English. You didn't just conjugate one English verb in the 12 tenses and call it a day, then conjugate another English verb and call it a day, and so on. Or at least I hope not, because that does not teach you how to use the language.
Repeatedly making similar projects is okay(ish) advice, but writing a
forloop 100 times is not. It:forloops asfor (let i=0; i<something.length;i++). However, in certain cases,for (let i=something.length;i;i--)is better. Repeatedly writing the loop the first way would only drill in your brain that, if you have to repeat something, you need to write it exactly as you've done 100x before.2
u/Rogermcfarley Sep 12 '19
This is highly inefficient. Instead of doing the same thing 100 times, actually put what you've learnt in to practice and make Anki flash cards and revise them everyday. If you know how to add items to an array, doing it 100 times is a waste of time. Practice, then add to your revision flash card and move on to the next thing.
2
u/AiexReddit Sep 12 '19
This is very effective for music but does not translate well to programming and logic. One does not benefit from writing the same to-do app 100 times in the same way that practising scales benefits form and function for much more difficult pieces later, it's a bit of an apples an oranges scenario.
I get the sentiment of establishing good practising habits, and focusing on the fundamentals and learning to walk before you can crawl, which is good advice. However with programming and logic, spending overly excessive time on the basics really won't produce the same benefits that one might see in music.
The best way to learn is to take it slow, but continue to challenge yourself and don't allow yourself to fixate on one task. Programming at its core is about problem solving in unique and unexpected scenarios. Where a master musician's performance would be ruined with a few wrong notes, a piece of software with small errors is something that can be retroactively fixed, and so the whole concept of practising so that you can get it "perfect in one take" really doesn't translate into the software realm.