State machines – Why and how to use them in web development | Dark Hacker News