a finite number of states at any given time Why using them e.g. in PHP? • Workflows & Automation • Less if/else jungle => less bugs • Direct link of code to visual representation • Easy to maintain, grow and modify over time, even with more complex models What is a state machine 6