Comment

Comment by echelon

OOP is perfectly fine.

Rigid class-based inheritance (especially multi-inheritance) is what sucks. This over-engineered complexity really only benefits things like window toolkits where you want super rigid modeling of widget types. But even that's a stretch.

Traits do OOP the right way. Complete flexibility.

    Dog goes "woof"
    Cat goes "meow"
    Bird goes "tweet"
    And mouse goes "squeak"
Does not need classes.
parent echelon 2 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton