~/talk

Observables for Handling Asynchrony Elegantly

TalkinKoreanat FEConf 2019 · on Saturday, 2019-10-26· [reactive-programming]
slides:none on file

The talk argues that Rx-style Observables (using RxJS) are superior to promises for front-end async because they represent streams of values, support cancellation and composition, and avoid callback nesting. It demonstrates building an autocomplete using RxJS operators such as switchMap, debounceTime(150ms), and catchError to debounce user input, issue AJAX calls, and cancel previous requests so stale results don’t render, and also shows scheduler-based cancellable animations (smooth scrolling); it notes a steeper learning curve and harder debugging as tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Promises limitations
  3. 5:03Observables better than promises
  4. 8:49Observable basics and cleanup
  5. 12:09RxJS library and operators
  6. 15:39RxJS pipe and chaining
  7. 16:20Waterfall search setup
  8. 17:06Marble diagrams explained
  9. 19:17SwitchMap and cancellation
  10. 21:34Error handling with catchError
  11. 23:26RxJS benefits summary
  12. 23:48Push vs pull async
  13. 27:14RxJS pros and cons
  14. 28:43RxJS schedulers for animations
  15. 32:45Pipeline operator proposal
~/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.