3 ms·
Do not ever cut and paste while writing code; type it again. When I learned programming in the ZX Spectrum / C64 era, magazines and books were also used as a so
by beagle3 17y ago
Do not ever cut and paste while writing code; type it again. When I learned programming in the ZX Spectrum / C64 era, magazines and books were also used as a software distribution media - and you'd have to type in the program to get the latest and greatest.
I typed my share of programs (a few tens or hundreds of pages, I would guess), and doing that helped me figure out stuff like
- which constructs are easier to memorise when you move your eyes back and forth from page to screen;
- that shorter code is usually better
- to keep only comments that would help me understand the code, NOT retype all the idiotic/historical comments originally in the program
- you actually get intimately familiar with lots of code styles, good and bad