News for hackers. Stuff that matters.
Re:Inheritance versus Composition by ntzm on Thursday May 09, 2019 @09:26AM (#19868044)
Duplication is better than the wrong abstraction
Re:Inheritance versus Composition by michaelcampbell on Thursday May 09, 2019 @09:56AM (#19868298)
Inheritance is not necessarily the wrong abstraction, too.
Re:Inheritance versus Composition by gerbilly on Thursday May 09, 2019 @09:59AM (#19868340)
Maybe, but who says inheritance is the wrong abstraction?
Re:Inheritance versus Composition by Vanderson on Thursday May 09, 2019 @09:34AM (#19868108)
Can you clarify this idea some?

I have used inheritance in a way to make accessing code more seamless and easier for development. But without inheritance, I end up with a lot of boilerplate code, imports, etc...

Doesn't duplication go against the DRY principle? I know you are saying "wrong inheritance", but some people are saying all inheritance is wrong...