It’s good advice for all OO programmers that inheritance between classes should only be used when the subclass has an is-a relationship to the superclass. It can be tempting to inherit from a class just because it has properties or behaviours that you want and inheritance is a convenient way to get them easily. The following is a fun story from a game developer dealing with some problems caused by them ignoring this advice.
Camera obscura
This is an older one, but Force 21 was an early 3D RTS which used a follow cam to observe your current platoon. Toward the end of the project we had a strange bug where Continue reading