News for hackers. Stuff that matters.
Re:Ask HN: How often do you use inheritance? by twobyfour on Saturday May 13, 2017 @08:39AM (#14330667)
Constantly. My company uses a popular framework that supports complex behavior defined largely in a declarative manner using inheritance; with method overrides for customizing business logic.

I also frequently use multiple inheritance and what are called "mix-in" classes in python to make more complex customizations reusable.

Re:Ask HN: How often do you use inheritance? by wayn3 on Sunday May 14, 2017 @03:39PM (#14337186)
MixIn is just multiple inheritance rebranded.
Re:Ask HN: How often do you use inheritance? by twobyfour on Monday May 15, 2017 @06:00AM (#14340374)
Yes. Mixins are a particularly handy and slightly less dangerous form of multiple inheritance than multiple inheritance from two fully-fledged and usable classes (which IME causes more problems than it solves). I didn't intend to imply they weren't multiple inheritance. Would it have been clearer to have said "with" instead of "and"?