As opposed to conditional flag-centric code, a state machine diagram presents a very clear view of the design, and so provides a good example to students. As opposed to conditional flag-centric code, ...
To the uninitiated the words ‘State machine’ sound like something scarily big and complex. They aren’t (necessarily) and can be quite useful. In fact, state machines are no physical machines but a ...