6 ms·
> Developers would often write helper functions that accidently mutated the original Date object in place when they intended to return a new one It's weird tha
by kemayo 6mo ago
> Developers would often write helper functions that accidently mutated the original Date object in place when they intended to return a new one
It's weird that they picked example code that is extremely non-accidentally doing this.
- Griffinsauce 6mo agoAn example that is hard to follow defeats the point. It's just showing what pattern is possible and you can imagine the abstraction layers and indirection that would make it happen accidentally.