Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RxJS Introduction
Search
r31gN_
July 25, 2016
Technology
64
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RxJS Introduction
r31gN_
July 25, 2016
Transcript
17 slides
RxJS introduction
Current state of UIs • Extremely complex • Full of
async events, client/server communication • UIs are always composed based on a state • State is hard to reason about
Imperative programming
None
User action UI Responds User action ….. Uses imperative programming
Uses imperative programming UI Responds time (s)
Caveats of IP • Isolates state from time • You
don’t see the bigger picture • Mutable values
Is there a way … ?
Reactive programming
– Andre Staltz “Reactive programming is programming with asynchronous data
streams.”
Streams • Sequence of ongoing events ordered in time •
Cheap, ubiquitous • Allow you to react to new data • Think event busses, typical click events, etc.
But in RP …
None
Observable/Observer • Observables are push-based, observable sequences that can send
data to anyone who is interested • Observers are entities who register an interest through a subscription to an Observable
Observers • Register via subscribe method • You get back
a Disposable object (a handler for the subscription) • onNext, onError, onCompleted
Demo time with RxJS
When to use RxJS • Orchestrate event-based computations • Deal
with async data • Complex UIs with lots of user interaction
Thank you! @r31gN_ https://github.com/r31gN/rxjs-demo-workshop
More Decks by r31gN_
See All by r31gN_
State management in React using Context and Hooks APIs
r31gn
0
270
React internals (fibers, coroutines, algebraic effects)
r31gn
1
590
10 things you need to know about React 16
r31gn
0
440
Breaking React apart Fiber by Fiber
r31gn
0
290
Progressive Web Apps - The Future
r31gn
2
370
The Magic Behind HTTP/2
r31gn
0
180
Client Side Reactive Programming Using RxJS
r31gn
0
210
CSS Architecture
r31gn
1
150
Embrace Native JavaScript
r31gn
0
120
Other Decks in Technology
See All in Technology
Go でトランザクション、どう書いてますか?
knwoop
1
370
RAGの改善を速く回すための評価基盤
yosukeyoshida
6
3.5k
20261113_AWS Organizations運用を下支えするCFn StackSetsの柔軟性
dkduppf
0
110
20261119_AgentCore
takuyay0ne
1
180
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
430
エンタープライズ事業未経験のデータ屋、 AI時代にN回撃沈する.pdf
ryoskdara_
0
190
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
290
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
15
9.7k
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
260
NutanixへのSSHアクセスの今後について
shadowhat
0
150
コーディングできない僕にBobが舞い降りた
shumpei3
0
170
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
810
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670
Google's AI Overviews - The New Search
badams
0
1.7k
Believing is Seeing
oripsolob
1
290
WCS-LA-2024
lcolladotor
0
1k
Between Models and Reality
mayunak
4
600
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
460
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
310
The untapped power of vector embeddings
frankvandijk
2
2k
Designing for Performance
lara
612
70k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k