3 ms·
Fragile base classes only affect C++. That's not inherent to OOP. Java solved it completely. Inheritance gets ragged on a lot these days, but frankly I see it
by repolfx 7y ago
Fragile base classes only affect C++. That's not inherent to OOP. Java solved it completely.
Inheritance gets ragged on a lot these days, but frankly I see it all the time in most mature, production codebases and it's usually used properly and in a tasteful manner. IMO the idea that inheritance is evil is just people who want to make a new programming language looking for a philosophical edge - just like how a bunch of language designers decided exceptions suck because "you can't see the control flow" (eg. in Go) and now years later have basically admitted their error handling sucks, so they need to add something very exception-like back in. Actually exceptions never sucked but Go's designers needed some sort of fresh idea to justify their project.