Software Engineering :: State :: Machine :: Finite State Machine
⪼ Made with 💜 by Polyglot.
- Software Engineering :: State :: Machine :: Terminology
- Software Engineering :: Programming :: Languages :: JavaScript :: State Machine
State machines are a method of making your software better able to prevent illegal states. Similar to type systems, SQL constraints, and linters, state machines are a way to teach the software to catch mistakes in ways you define, to help lead to better software.
The major mechanism of a state machine is to define states, the transitions between them, and sometimes associated data and other niceties. The minor mechanism of state machines is to attach actions to the transitions, such that the state machine can partially run itself.