Top posts

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

Software Engineering
2018
116

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…