Design Patterns in PHP: factory, singleton, observer, chain-of-command, strategy | Hacker News Reader