Goodbye, Encapsulation.
Goodbye, Object Oriented Programming
Charles Scalfani
4.98K314
Well, the problem you are pointing out is an intrinsic problem of the mutable state of objects. I agree: this could be an issue but… my overall consideration is the following: I sense you are considering OOP as a Silver Bullet that doesn’t make its job. I could agree on the second part :-) but not on the first: OOP is not a Silver Bullet. It doesn’t ensure that what you do won’t be screwed up at some point but gives you some overall directions to follow to organize your code in a way that could even end up in being economic, efficient, easy to read (which if othen *the* issue), test and maintain.
(Wow, I just discovered myself as an advocate of OOP… I would have never thought this :D )