Re:AI is an impediment to learning web development
by Buttons840 on Sunday October 06, 2024 @06:11PM
(#41760769)
That's a pile of tricks, not a mental model though.
A mental model might be something like "JavaScript has strict and non-strict comparisons", but there are no strict less-than comparisons for example, so remembering to use === instead of == is just a one-off neat tip rather than an application of some more general rule.
Re:AI is an impediment to learning web development
by umpalumpaaa on Sunday October 06, 2024 @11:31PM
(#41762520)
I was not trying to imply that this is a mental model. I was merely commenting on OPs comment about JavaScript.
If you just follow a few relatively simple rules JS is actually very nice and "reliable". Those "rules" are also relatively straight forward: let/const over var, === unless you know better, make sure you know about Number.isInteger, isSafeInteger, isObject etc etc. (there were a few more rules like this - fail to recall all of them - has been a few years since i touched JS) - hope you get the idea.
Also when I looked at JS I was just blown away by all the things people built on top of it (babel, typescript, flowtype, vue, webpack, etc etc).