Stop Writing If-Else Trees: Use the State Pattern Instead | Dark Hacker News