4 ms·
> the toy-ishness of the language I think that this is a feature, not a bug. Part of my maturation from a junior to a senior engineer was learning to trust tha
by acidbaseextract 6y ago
> the toy-ishness of the language
I think that this is a feature, not a bug. Part of my maturation from a junior to a senior engineer was learning to trust that simple implementations are ok. I remember often not trusting that the simple thing would work robustly (passing around a list) and reaching for something way more heavy (perhaps a wrapper around sqlite persistence). I now recognize that the simple implementation is better and almost always more robust than something fancy, and I definitely attribute that to internalizing the zen of python over time.
> JS is a pass by value language... except when it comes to arrays and objects, it then becomes pass by ref. Go figure.
It's all pass by value. For objects and arrays, the value passed is the reference.