Asynchronous JavaScript
summary
Claim: events are collections and treating them as such lets you apply array operators (map filter concatAll takeUntil switchLatest) to real UIs. Using Reactive Extensions (Rx) and its JavaScript and Java ports (rxjs rxjava) produces observable streams that resolve race conditions, cancel in-flight XHRs, and free subscriptions so memory leaks disappear. Examples include a working mouse-drag built from mouseDown/mouseMove/mouseUp and Netflix search autocomplete that throttles keystrokes and uses switchLatest cancels previous requests to keep results correct.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:17Gold Sponsors
- 3:01IN OBSERVER PATTERN
- 4:50Functions
- 7:12Top-rated Movies Collection
- 8:20Mouse Drags Collection
- 9:42Introducing Observable
- 11:53Event Subscription
- 18:12switch Latest
- 20:25Netflix Search
- 25:28Resources
related talks
41mAsynchronous JavaScript
42mReactive JavaScript with RxJS
34mObservables for Handling Asynchrony Elegantly
37mStreaming and event-based programming using FRP and RxJS
43mReactive JavaScript at Netflix, Microsoft and the World
42mConquering Time with Functional Reactive Programming
38mCuring your event processing blues with Rx
28mReactive all the Things
