Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active June 24, 2024 20:51
Show Gist options
  • Select an option

  • Save wilmoore/1d29d13a12dfdd9977e25345a29c4046 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/1d29d13a12dfdd9977e25345a29c4046 to your computer and use it in GitHub Desktop.
Software Engineering :: State :: Machine :: Finite State Machine

Software Engineering :: State :: Machine :: Finite State Machine

⪼ Made with 💜 by Polyglot.

related

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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment