Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Don’t lose your marbles over reactive programmi...

Wendy Kong
December 07, 2019

Don’t lose your marbles over reactive programming (KL DevFest 2019)

Presented at KL DevFest 2019

Penang version here: https://speakerdeck.com/wendko/dont-lose-your-marbles-over-reactive-programming-penang-devfest-and-bizfest19

Reactive programming and marble diagrams - they always seem to come together! Marble diagrams are meant to help visualize reactive programming, which can be hard to work with especially when the amount of data streams and operators start to increase. Well, these marbles and straight lines and observables are great and all, but at the end of the day, I just want my data! Let's take a light-hearted approach on reading these diagrams and make sense of this whole reactive programming thing. After all, guli is supposed to be fun, right?

Wendy Kong

December 07, 2019
Tweet

More Decks by Wendy Kong

Other Decks in Technology

Transcript

  1. Kuala Lumpur 1. Create an observable const a = //

    an observable; const b = a.pipe( // do something! ) .subscribe(); setTimeout(() => b.unsubscribe(), 5000);
  2. Kuala Lumpur 2. Observe & do something const a =

    // an observable; const b = a.pipe( // do something! ) .subscribe(); setTimeout(() => b.unsubscribe(), 5000);
  3. Kuala Lumpur 3. Unsubscribe const a = // an observable;

    const b = a.pipe( // do something! ) .subscribe(); setTimeout(() => b.unsubscribe(), 5000);
  4. Kuala Lumpur TQ! @wendko References • learnrxjs.io/ • reactivex.io •

    rxmarbles.com • kgoralski.gitbook.io/wiki/reactive • en.wikipedia.org/wiki/Observer_pattern • Reactive Programming in Netflix (link) • Reactive Programming origins and ecosystem (link) • The introduction to Reactive Programming you've been missing (link) • The Reactive Landscape (link)