News for hackers. Stuff that matters.
Re:Inheritance was invented as a performance hack by loopz on Thursday April 29, 2021 @10:57PM (#26989447)
Inheritance is just a tool to mostly avoid. It tightly couples different class implementations. So will make later refactors error-prone and tend to scatter logic. It's misunderstanding OO as messaging between objects.

Using composition or lay out data differently may yield designs with more desirable properties. There's no one answer and it depends.

There are no comments on this comment yet.