Lobste.rs

Type out the code

Type out the code : r/programming

Back in the day I read one of Zed Shaw’s “Learn X the hard way” courses (I think it was his C++ course) and he began the course with a disclaimer that said something like “do not copy and paste the examples; type them out” because he believed strongly that doing so improved your comprehension of the material. These days he recommends something even stronger: The best way to do this is when you complete an exercise delete what you did and do it again, but try to use your memory. If you get stuck then look at the exercise for clues, but try your best to recreate what you just did from memory. At first you’ll be constantly referring to the exercise and the code, but eventually you’ll get to where you can do it on your own. This will also improve your ability to remember more code, your…

Continue reading at Lobste.rs haskellforall.com
Advertisement