3 ms·
This articles hits the head on why I think OOP is hot air. Everything that OOP espouses is achievable through a different way from what an OOP language like Jav
by SPBS 6y ago
This articles hits the head on why I think OOP is hot air. Everything that OOP espouses is achievable through a different way from what an OOP language like Java chose.
Abstraction and Encapsulation? Every programming language lets you do that with functions (or some other way).
Inheritance? Even OOP die-hards favor interfaces over inheritance.
Polymorphism? Interfaces (like in Go).
What's left to distinguish OOP with? The bad choices that Java made, like not allowing standalone functions i.e. Execution in the Kingdom of Nouns. That's what everyone hates on when they say they hate OOP, they hate Java's style of OOP.
When you look at the 'virtues' of OOP it all falls apart because other non-OOP language achieve the same thing without being Java.