News for hackers. Stuff that matters.
Re:Problems with Object/Relational Mapping (2006) by willtim on Sunday July 23, 2017 @05:17AM (#14831506)
Contrary to popular belief, OOP doesn't really encapsulate state, it just hides it. Encapsulated state should mean state that does not contribute to the global state space of the system. The danger of OOP is that one ends up with a combinatorial explosion of possible states your system may be in. This may be desired in some situations (e.g. simulations) but does not make a good general approach. Note that functional languages are also capable of building stateful systems this way, for example Erlang actors or composing finate-state automata.

There are no comments on this comment yet.