3 ms·
The real danger of OOP is that people mangle it and use far too much state. At some point there is virtually no difference between a class with many variables a
by goalieca 16y ago
The real danger of OOP is that people mangle it and use far too much state. At some point there is virtually no difference between a class with many variables and global variables yet this is exactly what we teach freshmen.
- sesqu 16y agoIs that a bad thing? Global variables keep cropping up in programming languages, so large objects (context-globals; namespaces) might be just the right compromise between encapsulation and coherence.