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
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
430
Breaking React apart Fiber by Fiber
r31gn
0
290
Progressive Web Apps - The Future
r31gn
2
350
The Magic Behind HTTP/2
r31gn
0
180
Client Side Reactive Programming Using RxJS
r31gn
0
200
CSS Architecture
r31gn
1
140
Embrace Native JavaScript
r31gn
0
110
Other Decks in Technology
See All in Technology
ゲームのリアルタイム通信から見た QUIC と MoQ
segadevtech
0
110
go-sqletch
moznion
0
140
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
170
パッチ更新でterraform initが落ちた日
grimoh
1
120
組み立てて楽しむ AWS Blocks 入門
kmiya84377
0
230
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
360
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
3
710
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
140
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
150
継続的なAIコスト最適化
bgpat
1
290
Loop Engineering これくらいでいい
mikanichinose
0
230
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
300
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
Thoughts on Productivity
jonyablonski
76
5.4k
The Cost Of JavaScript in 2023
addyosmani
55
10k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
440
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
Embracing the Ebb and Flow
colly
88
5.2k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Six Lessons from altMBA
skipperchong
29
4.5k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
630
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Transcript
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