Typing patterns and smells