From imperative to reactive thinking
summary
Shows a concrete before-and-after: an imperative version built from nested setTimeouts and shared state versus a reactive rebuild using Angular and RxJS. Implements the Friends ball game with probabilistic throws, a working demo, and code that uses fromEvent, switchMap, delay and do to model windup travel and catch as streams. Reactive code composes throw and catch observables, uses repeat and takeUntil and errors to stop the game, and demonstrates easier feature addition and clearer flow than the imperative version.
AI-written summary · about
chapters (6)
related talks
26mReactive Programming Future Proof Your Code
30mThe Magic of RxJS
36mTo be reactive, that's the answer!
37mReactive Programming with RxJS
42mConquering Time with Functional Reactive Programming
45mReactive Frontends with RxJS and Angular
28mReactive Programming Demystified Drink the Kool-Aid
54mReactive Angular 2
