~/talk

Mastering UIs with Finite State Machines

Talkat JSConf Budapest 2019 · 2019-09-26..09-27· [frontend-architecture, react]
slides:none on file

Argues finite state machines (Mealy-style) replace fragile if/else UI code with a deterministic, idempotent model that makes race conditions and double-fetch bugs impossible; a live demo runs a fetch example in vanilla JavaScript + React and uses commands to register side effects; testing is reduced to walking states with snapshot tests (about 70% coverage reported); production use covers both React Web and React Native, with libraries like XState recommended and a Mars rover cited as a real-world FSM.

AI-written summary · about

  1. 0:00Start
  2. 8:19Top-Down Approach
  3. 13:19Key Features
  4. 17:43Rendering
  5. 18:42Side Effects
  6. 20:17Commands
  7. 27:30Testing
  8. 27:53Resources
~/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.