3 ms·
On the subject of modularity, one aspect of OOP that bothers me is the conflation of namespacing (for organizing code that operates primarily on one object) wit
by ssivark 6y ago
On the subject of modularity, one aspect of OOP that bothers me is the conflation of namespacing (for organizing code that operates primarily on one object) with encapsulating the method as a class/object member. One could do the former without doing the latter! Basically a module containing structs and functions which act on it. In cases where the method(s) act on multiple objects, there might be other places/modules for them to naturally live.