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

RxJs Trex

RxJs Trex

Reactive Programming. Learning Functional Programming through Game.

Jecelyn Yeen

August 03, 2019
Tweet

More Decks by Jecelyn Yeen

Other Decks in Programming

Transcript

  1. @JecelynYeen Software Architect Google Developer Expert - Angular - Web

    Technologies Organizer - NG-MY 2019 - Women Who Code KL
  2. stream .pipe( tap(() => startGame()) ) .subscribe(); import { fromEvent,

    merge } from 'rxjs'; import { tap } from 'rxjs/operators'; Stream operator helpers Run it! Stream creation helpers Create a stream with button click and keydown Chain all operation(s) const stream = merge( fromEvent(btnStart, 'click'), fromEvent(document, 'keydown') );
  3. Thank you! Follow @JecelynYeen Code: Angular: https://github.com/chybie/rxjs-trex JS: https://stackblitz.com/edit// rxjs-trex-run.stackblitz.io/

    JS Starter: https://stackblitz.com/edit/rxjs-trex-starter Live demo: https://rxjs-trex.netlify.com/ Slides: http://speakerdeck.com/chybie/rxjs-trex