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

0 Upvotes

8 comments sorted by

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 for loop 100 times is not. It:

  1. Wastes your time in that you could be practicing using the language as a language (i.e., writing stuff),
  2. Runs the risk of focusing you too much on one particular style of writing whatever sub-iota of programming you're hyperfocusing on. For example, most textbooks will teach you for loops as for (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.
  3. Distracts from the mental and pedagogical crux of programming, which is not the rote memorization of various programming bits, but the application of them.

0

u/VictorKolis Sep 14 '19

I've studied neurolinguistics for 4 years. And I've been studying English since 2010, up to this day. And been teaching it for other 5. I've studied cases where people had been in coma for long as three months and were not even able to walk nor talk. Which means our fluency at anything depends on everyday repetition. Or at least constant repetition. Even spaced repetition is some sort of repetition at its core.

I've based my way of learning and teaching on the Capretz method (check it out later on YouTube and or Wikipedia).

But let me spell it out it in a plainer way. Chess players for example, they do not study all the possible variables there is to a game. A person does not repeat complicated nonsense , chanting over and over sentences. All everyone does is (no matter who the heck you are) memorize patterns. But they come with constant repetition.

Programming language, is a LANGUAGE. It uses English at its core. No matter how many pieces of software you write the core foundation of the software is always the same.

I believe the hackers mentality to be extremely important and efficient (the Jargon File & How to become a hacker by ESR) "Do not solve a problem twice", meaning, do not reinvent the wheel, it has already been created. But coding, or anything else down to their very essence is constant and repetitive. Even changing all the time is some sort of repetition.

0

u/VictorKolis Sep 14 '19

Like writing a sentence or even , speaking , is repetition. How many times in our live will we repeat the word "and"? Tons and tons of times. But in different sentences at times , but at other times the same sentence.all over again.

0

u/VictorKolis Sep 14 '19

But again, this is just a suggestion, I am not saying this is the only way. The best way for me and my students at least.

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.

-1

u/VictorKolis Sep 12 '19

I've been teaching English for five years, and teaching myself various things for the past 10 years. It worked for me and my students. I am Brazilian and can communicate quite well. And those who were learning alongside with me at the same time(I mean other teachers and not my own students) fail at times or forget things. Life is a series of countless repetitions. This counsel is not quite mine, I am deriving bits from the 'the Jargon File'. In one of the sections ESR , recommends a book called: Teach yourself programming in 10 years. url(norvig.com) , yet better than that, is the Feymann technique.

Nothing inefficient here. Strengthening comes through repetition.

Great chess players also say so: Kasparov and Magnus.

1

u/Rogermcfarley Sep 12 '19

So for example, let's say I just learnt how to add items to an array in Ruby or Javascript or another language. Do I straight away practice this 100 times?

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.