Simplicity and the power of state machines
I recently read Dave Thomas’s book, Simplicity and I can say that I learnt a lot. One of the things that I really liked about the book was the chapter about state machines, and how they often make the code much simpler to maintain and understand. In the codebase I’m working now, I also started turning my logic code into state machines, and I do agree that they have become simpler.