News for hackers. Stuff that matters.
Re:Agile Is Dead, McKinsey Just Killed It by noptd on Wednesday September 22, 2021 @10:02PM (#28624469)
> Never go over-fancy with inheritance and whatnot.

So much this.

Personally, I've grown to prefer object composition for bucketing and sharing reusable functionality across classes over the years. Testing with mocks becomes far easier, and it really seems to simplify the mental model.

Nowadays, I only use inheritance when working with generics and generalizable interfaces.

There are no comments on this comment yet.