Code Smell 23 - Instance Type Checking
Do you check who are you talking to?
Avoid kind, isKindOf, instance, getClass(), typeOf, etc..
Don't use Reflection and Metaprogramming for Domain Objects.
Replace IFs with polymorphism.
Since type checking methods are well known it is very easy to set up a code policy checking the uses.
This article is part of the CodeSmell Series.