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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
CSC307 Lecture 09
javiergs
PRO
1
830
Package Management Learnings from Homebrew
mikemcquaid
0
200
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
690
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
CSC307 Lecture 03
javiergs
PRO
1
490
ThorVG Viewer In VS Code
nors
0
760
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
AI巻き込み型コードレビューのススメ
nealle
0
110
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
CSC307 Lecture 07
javiergs
PRO
0
550
CSC307 Lecture 06
javiergs
PRO
0
680
Basic Architectures
denyspoltorak
0
660
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Done Done
chrislema
186
16k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
My Coaching Mixtape
mlcsv
0
46
How to build a perfect <img>
jonoalderson
1
4.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
63
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
290
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
930
Agile that works and the tools we love
rasmusluckow
331
21k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
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