News for hackers. Stuff that matters.
Re:OOP Is Dead, Long Live OOP by marcosdumay on Thursday October 18, 2018 @06:41PM (#18252848)
> The consensus is to use inheritance of interfaces and use composition to implement the interfaces.

A consensus by the "maximization of boilerplate" rule.

Inheritance is the most powerful tool available at the OOP land. It's the one thing that FP languages still didn't replace with enough added advantages to make the OOP stuff look like a toy. So if you are programming in OOP while avoiding inheritance, you would be certainly better in another paradigm.

(And, of course, powerful tools are easy to misuse. That's no reason for forbidding them.)

Re:OOP Is Dead, Long Live OOP by mercer on Sunday October 21, 2018 @06:48AM (#18267454)
I'm not familiar enough to have a strong opinion on this, but the impression I get is that even the OOP camp (or thought leaders within those camps) seems to have abandoned inheritance in favor of composition.

Assuming this is the case: why do you disagree and what do you think is the cause of this difference in opinion?

Re:OOP Is Dead, Long Live OOP by CMCDragonkai on Friday October 19, 2018 @07:17AM (#18255825)
Check out extensible records or Nix language fix pattern for its attribute sets.