Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Reactive Programming in Javascript
Search
Andres Osorio Plata
October 28, 2015
Programming
0
120
Reactive Programming in Javascript
- What is RxJS
- Event Stream
- Why RxJS
- Rx Functions
Andres Osorio Plata
October 28, 2015
Tweet
Share
More Decks by Andres Osorio Plata
See All by Andres Osorio Plata
Material Design Lite
codeandrop
0
130
Todo App Angular 2
codeandrop
1
170
Other Decks in Programming
See All in Programming
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
1k
AI時代のUIはどこへ行く?
yusukebe
11
7.1k
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
120
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
210
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
390
ソフトウェアテスト徹底指南書の紹介
goyoki
1
140
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
1.2k
Trem on Rails - Prompt Engineering com Ruby
elainenaomi
1
100
DockerからECSへ 〜 AWSの海に出る前に知っておきたいこと 〜
ota1022
5
1.9k
rage against annotate_predecessor
junk0612
0
160
Ruby×iOSアプリ開発 ~共に歩んだエコシステムの物語~
temoki
0
200
TanStack DB ~状態管理の新しい考え方~
bmthd
2
440
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
Embracing the Ebb and Flow
colly
87
4.8k
Music & Morning Musume
bryan
46
6.8k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Visualization
eitanlees
147
16k
Faster Mobile Websites
deanohume
309
31k
The Cult of Friendly URLs
andyhume
79
6.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Site-Speed That Sticks
csswizardry
10
810
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
185
54k
Bash Introduction
62gerente
615
210k
Transcript
Reactive Programming in Javascript Andres Osorio @codeandrop
Agenda • What is RxJS • Event Stream • Why
RxJS • Rx Functions • Demo time!
RxJS - What • Asynchronous • Event-based • Observable sequences
• Fluent query operators (filter, map, etc) • Extends the observer pattern • Data Streams
Event Stream
ASCII Diagram
RxJS - Why • Avoid callback hell • Treat streams
like collections (Array) • Promises on steroids • No flow control statements (if/for/etc)
RxJS - Definition • Specify dynamic values behavior at time
of declaration
Double click event stream
Example - "Who to follow" box
Rx Functions - map
Rx Functions - map
Rx Functions - flatMap
Rx Functions - flatMap
Rx Functions - merge
Rx Functions - merge
Rx Functions - merge
Rx Functions - combineLatest
Rx Functions - combineLatest
Demo Time!
Links • http://jsfiddle.net/staltz/8jFJH/48/ • https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 • https://egghead.io/series/introduction-to-reactive- programming
Andres Osorio @codeandrop