~/talk

The Cleanest Way to Write Observable Chains

Talkat ng-conf 2023 · 2023-06-14..06-15· [angular, reactive-programming]
links:none on file
slides:none on file

Compares nesting subscriptions, operator composition, and a multicast approach using a concrete getCustomer → getOrder example and shows which actually reduces complexity. Claims that shareReplay multicasts single call (roughly equivalent to a ReplaySubject) so two subscribers see the same order number while getCustomer runs once, that switchMap with tap hides side effects, and that async pipe eliminates subscriptions by exposing observables to templates. Notes worked demo, recommends shareReplay for readability, and warns about duplicated error handling and using catchError.

AI-written summary · about

  1. 0:00Intro
  2. 1:05Example
  3. 2:23RXjs Operators
  4. 3:09Composite observable
  5. 3:42Share replay
  6. 5:15Conclusion
~/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.