Hacker News new | ask | show | jobs
by theatrus2 3033 days ago
Developers use state machines a lot more than they would admit to. Often code would be more readable if the state machine was succinctly defined.
1 comments

There's a lot of truth to this statement in my experience. I just finished rewriting my homework for my operating systems course and the first version looks awful compared to when I rewrote a chunk of it as a state machine