4 ms·
I've been hearing some disdain for inheritance lately for some reason. This article is filled with it. For instance: "The beauty here is that you can reuse c
by wccrawford 16y ago
I've been hearing some disdain for inheritance lately for some reason. This article is filled with it. For instance:
"The beauty here is that you can reuse code without dealing with inheritance, or any sort of class-based hierarchy."
... That's the beauty? The only beauty if that you managed to avoid a feature of the language? Ouch.
I get that really dumb things can be done with inheritance, but that's true for almost any language feature. It's certainly no reason to avoid it altogether.