3 ms·
A surprising number of developers (especially in the web/native app dev world) are unfamiliar with state machines, especially in regard to UI development. The
by davidkpiano 9y ago
A surprising number of developers (especially in the web/native app dev world) are unfamiliar with state machines, especially in regard to UI development.
The idea of "when an event occurs, the state changes" might be a natural one, but there's many things about FSMs that are somewhat of a learning curve: self-transitions, sink states, Mealy vs. Moore machines (and their equivalence), non-deterministic FSMs (and converting to deterministic FSMs), optimization algorithms, path-finding algorithms, implementation (imperative, functional, regex-based, etc.)