News for hackers. Stuff that matters.
Re:If Inheritance is so bad, why does everyone use it? by CharlieDigital on Monday April 15, 2024 @09:10AM (#40040095)
In psychology, there is an idea of "locus of control".

I think OOP done well and applied in suitable scenarios results in entities that have internal locus of control; it's mutations of state are internally managed.

OOP done poorly has external locus of control where some external "service" or "util" or "helper" manages the mutation of state.

There are no comments on this comment yet.