6 ms·
Duplication is better than the wrong abstraction
by ntzm 7y ago
Duplication is better than the wrong abstraction
- Vanderson 7y agoCan 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...
- michaelcampbell 7y agoInheritance is not necessarily the wrong abstraction, too.
- gerbilly 7y agoMaybe, but who says inheritance is the wrong abstraction?