Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: