3 ms·
> Object-oriented programmers are premised on mutation I'm a Java OOP developer, and I make everything I can immutable. It's a design decision adopted by most
by rootlocus 8y ago
> Object-oriented programmers are premised on mutation
I'm a Java OOP developer, and I make everything I can immutable. It's a design decision adopted by most of my colleagues.
- rpastuszak 8y agoGood point. The same practices are common in JS. Arguably, point free style, currying, functional composition, etc... are easier to achieve in JS (esp. with types). I do enjoy writing java in somewhat functional way, and have seen badly written OOP Scala (mostly by developers, who just started experimenting with FP), and I think it’s difficult to discuss a language without the broader context of its common practices/developer culture/discourse around it.
- partycoder 8y agoImmutable objects are not common in JS. You can conceptually treat them as immutable, but they are mutable, because their base type is mutable and by extension everything is mutable.
- williamxd3 8y agoAt least there is Immutable.js
- alephnan 8y agoWhoops. I meant OO languages, not OO programmers.