~/talk

The Magic of RxJS

Talkat JSHeroes 2019 · on Friday, 2019-04-12· [reactive-programming, frontend-architecture]
slides:none on file

Builds a playable Breakout clone with RxJS and shows concrete choices: uses interval + animationFrame scheduler for a 60fps game loop, models inputs with DOM event streams, and transforms state with operators map, scan, withLatestFrom and combineLatest. Demonstrates calculating delta time, initializing state to avoid NaN, merging keydown/keyup to stop paddle drift, and explicitly unsubscribing to end the game. The demo mostly works, exposes a couple of bugs during live coding, and points to a repository with the full code.

AI-written summary · about

  1. 0:00Start
  2. 1:45What is RxJS?
  3. 4:23Promise
  4. 5:24Observer
  5. 5:46Creating Observable
  6. 6:09Observables are lazy!
  7. 7:34Subscription
  8. 8:01RxJS Operators
  9. 9:57Demo Time
~/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.