~/talk

A short tale about state machine

Talkat Dutch PHP Conference 2021 · 2021-06-17..06-18· [software-architecture, php]
slides:none on file

A practical comparison of PHP state machines shows how a simple boolean flag evolves into a real graph of states and transitions, with concrete examples wiring side effects like inventory updates via callbacks and events. Configuration uses guard / before / after callbacks to block or trigger work; implementations demonstrated are WinzouStateMachine ~5,000 installs/day, Symfony Workflow doubles installs and has better docs and Symfony integration, and a third library <1,000 installs, lightly maintained. Watch for the silent bug where code calls setState directly and bypasses guards and callbacks, breaking side effects.

AI-written summary · about

  1. 0:00Start
  2. 0:31A SHORT TALE ABOUT STATE MACHINE
  3. 26:12Why should you care?
  4. 26:38Common issues
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.