~/talk

Building a white noise machine with state machines

Talkat JSDayIE 2023 · on Tuesday, 2023-09-26· [frontend-architecture, component-design]
slides:none on file

Builds a working white‑noise web app using XState and the Stately visual editor to model and simulate the statechart, then exports runnable JS to StackBlitz. Features include power on/off with entry/exit actions, three sounds (white noise, waves, fan), concurrent light and volume regions, guarded self‑transitions for volume limits, and a separate audio player actor. Exports as JS/TS/JSON, walks the machine to find and fix a lighting bug, and demonstrates the model driving the implemented UI.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30My biggest pet peeve
  3. 1:44Communication tools
  4. 2:15Complexity
  5. 3:33White Noise
  6. 5:08State Machines
  7. 6:39White Noise Machine
  8. 12:49Actor Model
  9. 15:57Benefits of diagrams
  10. 17:42Exporting the code
  11. 21:10Do you always need a state machine
  12. 21:27When do you need state machines
  13. 21:47State charts
  14. 22:28Outro
~/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.