|
|
|
|
|
by zmmmmm
4835 days ago
|
|
That's being way too dogmatic. The problem with taking encapsulation to an extreme is that you are trading off against flexibility. The more you hide your state the less any external party can implement their own logic using that state, and the more separate concerns have to be bundled into the class hiding the state because they can't be dealt with anywhere else. Everything in software design is a tradeoff. |
|
I guess their brains simply deadlock.