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
360
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
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
150
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
210
Linuxネットワークスタック進化の軌跡: 過去10年の歩みと最新トレンド
orimanabu
4
760
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
190
E2E Test というハーネス — AI時代の自動テスト民主化
daishukojima
10
5.8k
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
210
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
3
460
メール到達性を支える、リンク先URLのドメイン評価の扱い方
wind111
0
170
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.2k
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
450
Biohub - Cell Tracking During Development 5th place solution
rist
0
180
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
240
Featured
See All Featured
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
310
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
Docker and Python
trallard
47
4.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
Site-Speed That Sticks
csswizardry
13
1.6k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
600
It's Worth the Effort
3n
188
29k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
530
The Language of Interfaces
destraynor
162
27k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k