Hacker News new | ask | show | jobs
by goalieca 5558 days 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.
1 comments

Is 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.