4 ms·
You're right. It is dogmatic. Anybody who says, "...only acceptable practice.", hasn't been around enough.
by jabits 14y ago
You're right. It is dogmatic. Anybody who says, "...only acceptable practice.", hasn't been around enough.
- eropple 14y agoAd hominems are cute, huh? If you have a reason to use mutability in a specific case, then do it. If you default to mutability, then you are almost certainly writing poor code. And EJBs (bean classes in general) basically demand mutability to actually be usable. I'm pretty sure "mutable-by-default is a major code smell" is not a very contentious statement in 2012.