2 ms·
> the biggest problem is that OOP focuses on state changes (of objects). State change means complexity, so formally, you need to understand the set of all possi
by Nursie 7y ago
> the biggest problem is that OOP focuses on state changes (of objects). State change means complexity, so formally, you need to understand the set of all possible states to reason that the program is correct.
This is just not true. In fact that's the whole point - you encapsulate state. It becomes easier to reason about.
When I write a webserver, do I need to know or care about the internal state of the classes dealing with the TLS protocol? Or do I encapsulate consistency and correct behavioir at that level and then use the interface elsewhere?
I don't need to know everything at all layers.