State Machine Pattern: A Pig in Lipstick | Hacker News Reader