~/talk

State in a Stateless World

Talkat PHP Yorkshire 2018 · 2018-04-13..04-14· [frontend-architecture]
slides:none on file

Argues that ad‑hoc status fields fail when business rules grow and instead implements a state pattern (door example where base methods throw exceptions and concrete states override allowed transitions) and full state machines using Symfony Workflow or winzou equivalents. Shows YAML config with a marking_store persisted property, explains lifecycle events (including guard events, enter/leave/entered/completed) for checks and side effects, recommends testing and logging, and warns that removing persisted states from code breaks existing DB rows.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:26Why state is necessary
  3. 7:37State pattern explained
  4. 15:22State machines vs state pattern
  5. 17:34Symphony workflow setup
  6. 20:10Using workflow in practice
  7. 24:04Workflow features and benefits
  8. 27:20When to use state machines
  9. 31:05Implementation tips
  10. 34:16Logging and event sourcing
  11. 36:46Recap and key takeaways
  12. 39:18Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.