Hacker News new | ask | show | jobs
by ketralnis 2871 days ago
I do this while learning a new language, and something else that helps is to make little changes as well. Rename some variables, store x+y in an intermediate variable before printing it, print to stderr instead of stdout, annotate a type that could be inferred. It accelerates learning by quite a bit for me
1 comments

I completely agree. It's far too easy for me to type things on autopilot and fool myself into thinking I've understood them. But making some changes usually reveals any misunderstandings right away.

It also helps me enormously to rename ALL variables and function names from examples. Yeah, it's a total pain and can even get confusing. But it keeps me actively engaged with the examples and makes a much clearer separation between USER-chosen names and actual LANGUAGE keywords!