News for hackers. Stuff that matters.
Re:I Don't Use Classes by LessDmesg on Thursday March 12, 2020 @11:31AM (#22557861)
I think we need to separate inheritance trees (arbitrary depth of inheritance) from mixin/trait inheritance which has height = 2. The latter is a lot more useful in eg. games where objects are assembled from mixins like Legos. The former leads to fragility, class bloat and other problems (remember MFC...).

Basically, GUI frameworks are the only area I know where OOP - real, authentic long inheritance chains with encapsulation and extensibility - has worked well.

There are no comments on this comment yet.