~/talk

RxJS: destroy the state machine!

Talkat Front-Trends 2016 · 2016-05-18..05-20· [javascript, frontend-architecture]
links:none on file
slides:none on file

SaleMove replaces a sprawling state machine with RxJS observables, turning UI events, AJAX and server streams into composable asynchronous collections so code becomes map/filter/merge instead of callbacks and mutable flags. Examples show double‑click detection implemented with buffer + throttle, mousemove cleanup via takeUntil, and converting XHR promises into Observable from Promise, which removes manual listener removal, enables synchronous-style testing, prevents common memory leaks and reduces race conditions across client and server.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:19Async problems in SaleMove
  3. 4:17What is reactive programming
  4. 6:46Streams as collections
  5. 9:15Stream operations and magic
  6. 12:30RxJS overview and observables
  7. 14:15Promises vs observables
  8. 17:50Code examples with RxJS
  9. 19:35Double-click detection with observables
  10. 20:40Memory leak prevention
  11. 21:42Cleanup with takeUntil
  12. 22:02Callback hell refactored
  13. 23:06SaleMove's RxJS adoption
  14. 23:49Server-side RxJS usage
  15. 24:32Frameworks using RxJS
~/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.