~/talk

Building a White Noise Machine with State Machines

Talkat DevReach 2023 · 2023-10-25..10-26· [frontend-architecture, javascript]
slides:none on file

Builds a browser white-noise web app using XState and the Stately visual editor, modeling power on/off, sounds (white/fan/waves), lights, and volume with entry/exit actions, context, guards, parallel states and an audio player actor. The statechart is executable, exported to JavaScript and run in StackBlitz; simulation exposes a missing power-off transition and a volume-up bug and a lingering light that are fixed live. Claim: statecharts make app logic both visual and testable, simplifying debugging, collaboration and incremental feature additions.

AI-written summary · about

  1. 0:00State machines and white noise
  2. 1:26Traditional state problems
  3. 3:57Finite state machines
  4. 7:50Hierarchical states
  5. 9:59Parallel states
  6. 13:10Self-transitions and actions
  7. 16:29Guarding transitions
  8. 17:34Actor model for logic
  9. 20:09Simulating the machine
  10. 22:34Visual state chart benefits
  11. 23:58Diagrams with colors
  12. 25:00Exporting to code
  13. 27:07Live white noise demo
  14. 31:26Debugging state machines
  15. 32:31When to use state machines
  16. 33:13Tools and recommendations
~/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.