But this bit resonated with me very strongly:
> is unfortunate that the majority of the ma- terial written on reducing finite state automata to code is in texts on compiler construction. Finite state machines play a sufficiently impor- tant role in a variety of computing applications to suggest that their use in programs should be introduced in lower level or even introductory programming texts.
So many things are better modeled as state machines, and their use as a programming pattern is rarely taught / seen in the wild.