/Inheritance

If Inheritance Is So Bad, Why Does Everyone Use It?

- Hillel Wayne tl;dr: Hillel refers to an essay that says that inheritance is harmful and if possible you should "ban inheritance completely... “A lot of these arguments argue that in practice inheritance has problems. But they don't preclude inheritance working in another context, maybe with a better language syntax. And it doesn't explain why inheritance became so popular in the first place. I want to explore what's fundamentally challenging about inheritance and why we all use it anyway.”

featured in #506


Why People Misuse Inheritance

tl;dr: The author argues that it feels like less work to implement and maintain an inheritance-based approach than a composition or delegation-based one. Yet, Of, the inheritance-based one is often either outright wrong or a “subtle bug waiting to happen.”

featured in #399