3 ms·
I think that OOP done right can address this problem through encapsulation of the logic. One can make the case that a function can do the same. I agree, but a
by CharlieDigital 2y ago
I think that OOP done right can address this problem through encapsulation of the logic.
One can make the case that a function can do the same. I agree, but a class is just a container for a set of related functions and state.
The problem with OOP seems to be that as a whole, devs are not that great at encapsulation and isolating domain logic.
- patrickmay 2y agoThe number of codebases I've worked on where developers automatically added getters and setters for all class members is too damn high.