Comment

Comment by julienchastang

Inheritance breaks encapsulation. When you break encapsulation your code becomes difficult to reason about. The OO code I've observed tends to have an abundance of global state in the superclasses.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton