4 ms·
I think the problem is that OOP is just taught as a way to organize code. Pretty much everything in our ostensibly OO system could be static methods and it wou
by jcromartie 16y ago
I think the problem is that OOP is just taught as a way to organize code.
Pretty much everything in our ostensibly OO system could be static methods and it would work just fine. Objects rarely have instance variables, or if they do they are just used to set up a method call. Object lifetimes are measured in single-digit lines of code, and messaging between them is extremely rare.
But that's what people have been taught.
- aphyr 16y agoI think you may be generalizing from a particular language culture to all OOP. This doesn't apply everywhere.
- jcromartie 16y agoI'm talking about the kind of generic business app built in blub by a team of chair moisteners who don't know anything outside of the one language the project is written in. It could be Java (of course), C# (just about as likely), or VB (when they get the idea to use objects), or Python (yes, I've seen it).