wordfor

finite state machine

noun

Software design

  1. Modelling behaviour as a fixed set of states and the allowed transitions between them. An order moves Draft → Placed → Shipped → Delivered; 'Shipped → Draft' is simply not a transition.

In plain words

  • lots of if statements for the status
  • what states can this be in
  • buttons are enabled at the wrong times
  • complicated status logic

See also make illegal states unrepresentable invariant

Find similar words