5 ms·
This may be the wrong timming, but I'll dare say it anyway: OOP (and OOP-like namespaces) is the best known approach for creating modularity. Other approaches a
by marcosdumay 13y ago
This may be the wrong timming, but I'll dare say it anyway: OOP (and OOP-like namespaces) is the best known approach for creating modularity. Other approaches are so far behind that they are not even in the same game.
Yet, there is an entire generation of programmers that learned OOP at school, and are hitting that hammer on everything, hoping for it to be a nail. That's all that's wrong with OOP: it does not solve all the problems in the world.
- weavejester 13y agoI definitely agree that namespaces are a good idea, but if by modularity you mean isolating pieces of functionality, I'd suggest OOP is one of the worst approaches to take, because it results in a lot of implicit connections. Only global state is worse.
- vdaniuk 13y agoSo is OOP is one of the best or one of the worst approaches to modularity?
- kazagistar 13y agoYes.
- weavejester 13y agoOne of the worst, I think, because it encourages developers to make connections, rather than enforce isolation.