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
Client Side Reactive Programming Using RxJS
Search
r31gN_
July 25, 2016
Technology
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Client Side Reactive Programming Using RxJS
r31gN_
July 25, 2016
More Decks by r31gN_
See All by r31gN_
State management in React using Context and Hooks APIs
r31gn
0
260
React internals (fibers, coroutines, algebraic effects)
r31gn
1
580
10 things you need to know about React 16
r31gn
0
430
Breaking React apart Fiber by Fiber
r31gn
0
280
Progressive Web Apps - The Future
r31gn
2
340
The Magic Behind HTTP/2
r31gn
0
170
CSS Architecture
r31gn
1
140
Embrace Native JavaScript
r31gn
0
110
From Callback Hell To Promises Heaven
r31gn
1
190
Other Decks in Technology
See All in Technology
案件に一番詳しいAIを Amazon Bedrock AgentCore で作る ― 知見が知見を生むチームへ / Compounding Knowledge with AgentCore
yusukeshimizu
1
160
巨大気象データと戦う ― サロゲートモデル学習を高速化する圧縮技術
gpuunite_official
0
170
AIで変わるエンジニアの働き方(仮)
naoinaoi
0
230
35分でわかるEffective Platform Engineering
nwiizo
5
550
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
290
tamachi.go 誕生の裏側
rymiyamoto
1
190
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
ガバメント AI 源内を地方自治体は活用できるのか可能性と課題、期待について
takeda_h
2
460
2027年のMetricKit
kantacky
0
130
Sets in Go
ramalho
1
1.2k
LLM Internals: 언어 모델의 계보와 알고리즘 진화 (2023~2026)
inureyes
PRO
1
800
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Designing for Timeless Needs
cassininazir
1
450
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Exploring anti-patterns in Rails
aemeredith
3
470
We Have a Design System, Now What?
morganepeng
55
8.3k
For a Future-Friendly Web
brad_frost
183
10k
We Are The Robots
honzajavorek
0
300
Music & Morning Musume
bryan
47
7.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Everyday Curiosity
cassininazir
0
290
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Transcript
Client-side reactive programming (using RxJS)
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
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-presentation