Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 80,845 posts.

Any topic
Any year
10227

Inheritance Often Doesn't Make Sense

There are three different types of inheritance going on. Ontological inheritance is about specialisation: this thing is a specific variety of that thing (a football is a sphere and it has this radius) Abstract data type inheritance is about substitution: this thing behaves in all the ways that thing does and has this…