News for hackers. Stuff that matters.
Re:Immutability is not enough (2016) by nijave on Saturday June 26, 2021 @03:47PM (#27645165)
I think the parent post is suggesting a lack of cohesion. E.g. the things changing state are sprinkled around in too many different places--it makes it hard to reason about

The solution really depends on the design pattern so the message tends to be fairly vague. From an OOP perspective, maybe more state modifiers should be instance methods are at least belong in the same namespace

There are no comments on this comment yet.