3 ms·
I have done quite some implementations now of things in an immutable way. Easy to test, easy to spot bugs, easy to work with. Come back a few months later, and
by sharpercoder 8y ago
I have done quite some implementations now of things in an immutable way. Easy to test, easy to spot bugs, easy to work with. Come back a few months later, and purity is removed on many things despite clear comments on the why it is immutable.
I welcome any effort to make developers aware of immutability.
One simple thing to help here is to have the "mutability: flag marked on every method in MDN.
- incadenza 8y agoYeah, similar to how lodash makes it explicit in the docs. That would be great.