~/talk

Knowing your state machines

Talkat Dutch PHP Conference 2018 · 2018-06-07..06-09· [frontend-architecture]
slides:none on file

Explains that state machines are simple directed graphs and shows concrete implementations: a Cron-driven email reminder using the state pattern versus a single-rule Mealy-style machine, a traffic light, job advert and PR workflows, multi-step forms and elevator doors. Uses the Symfony Workflow component (marking store, can/apply/transition, dumping to Graphviz) and hooks via the event dispatcher and guard events (about 21 events total). Demonstrates stateless rules-by-configuration and when to persist current state.

AI-written summary · about

  1. 0:00Intro
  2. 0:38State machines
  3. 2:30Graph theory
  4. 5:15Graph constraints
  5. 12:02The state pattern
  6. 16:30Implementing the traffic light
  7. 22:02The workflow component
  8. 27:30Workflow vs state machine
  9. 29:37Event dispatcher
  10. 31:06Guard events
  11. 33:07Business logic
  12. 33:47In configuration
  13. 35:49Summary
~/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.