4 ms·
OOP is successful because it's very good at modeling the world that surrounds us. As much as people like to hate on inheritance and recommending composition ins
by hota_mazi 8y ago
OOP is successful because it's very good at modeling the world that surrounds us.
As much as people like to hate on inheritance and recommending composition instead (a reasonable advice), the bottom line is that you will encounter the pitfalls of inheritance only on very rare occasions.
And inheritance enables so much flexibility and ease of maintenance that nothings comes close to it, not even FP.
Specialization and polymorphism(s) are the reasons why OOP is around, successful, and will remain so for a while. Anyone pretending it's bad or broken is just click baiting and does not understanding the fundamental issues.