Re:Memorizing a programming language using spaced repetition...
by stared on Wednesday February 07, 2024 @03:36PM
(#39293949)
Learning parameter ordering is precisely a thing that I advice against memorizing. Just use IDE.
Other things - well, there is Google, there is StackOverflow, and now - also ChatGPT with GPT-4.
Sure, it might not be enough for learning (at least, not for everyone), but well enough to avoid needless memorization. Memorization always comes at some opportunity cost of using time (and, well, brain capacity) for something more fruitful, e.g., learning good programming patterns, wise abstractions, etc.
Re:Memorizing a programming language using spaced repetition...
by karmakaze on Saturday February 10, 2024 @01:29PM
(#39328874)
The 'parameter ordering' bit was specifically from using PHP for a stint. The standard library goes out of its way to make parameter ordering non-standard and inconsistent. Having to look it up constantly was such a flow-kill. My text editor back then wasn't so smart.
Arbitrary things like obscure names, weird parameter orderings, mutated inputs, etc are all the sorts of gotchas that can be learned up-front if you care to know them before being bitten.
An example for Python is the del statement `del d[key]` which I find arbitrary and non-intuitive.
Actually when learning any language I usually learn the collections usages early--these would be good to memorize rather than repeatedly looking up and learning case-by-case as a time saving (non flow state breaking) measure.
For Swift it was all the weird call forms with keyword/symbols that move around rather than being additional parts of a complete form.