4 ms·
I'd say that encapsulation may be problematic because it's essentially hidden mutable state, which makes reasoning about systems hard(er). An attempt to hide p
by nine_k 4y ago
I'd say that encapsulation may be problematic because it's essentially hidden mutable state, which makes reasoning about systems hard(er).
An attempt to hide private pieces of data may be counter-productive when an entity system tries to globally optimize the handling of state. A lack of protection though may result in inadvertently depending on parts of data that are a fleeting implementation detail; tight coupling has its own problems.