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
Immutable, Performance and Component Communication
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Randy Lien
March 23, 2015
Programming
130
0
Share
Immutable, Performance and Component Communication
React.JS TW fifth meetup
Randy Lien
March 23, 2015
More Decks by Randy Lien
See All by Randy Lien
The ideas of Clojure - Things I learn from Clojure
randylien
0
190
Django Girls 2015 - HTML
randylien
1
180
Django Girls 2015 - CSS
randylien
1
140
React.JS Conf & f8
randylien
1
220
Introduce Flux & React in KKBOX
randylien
6
440
What is the next step for a front end beginner
randylien
1
100
Understand front end developer
randylien
2
210
Introduce Flux & React in practice
randylien
8
460
UI Engineering Introduction
randylien
0
60
Other Decks in Programming
See All in Programming
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
210
第3木曜LT会 #28
tinykitten
PRO
0
120
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
1.1k
Kingdom of the Machine
yui_knk
2
1.2k
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
150
CDK Deployのための ”反響定位”
watany
5
900
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
1.9k
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
380
Vibe NLP for Applied NLP
inesmontani
PRO
0
540
AIを導入する前にやるべきこと
negima
2
310
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
310
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
300
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
3
340
Music & Morning Musume
bryan
47
7.2k
The Limits of Empathy - UXLibs8
cassininazir
1
320
Making Projects Easy
brettharned
120
6.6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Accessibility Awareness
sabderemane
1
110
Crafting Experiences
bethany
1
130
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
Writing Fast Ruby
sferik
630
63k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Designing Powerful Visuals for Engaging Learning
tmiket
1
350
Transcript
Immutable Performance Randy Lien @React.JS TW 第五次⼩小聚
About Me • @randylien • Front end developer
Agenda • Immutable • Performance • Components Communication • Conclusion
Functional Programming
None
Why Immutable? • Immutable data has no side effect! •
Shared mutable state is the root of all evil - Pete Hunt • You will not get hurt by yourself or someone
None
Why Immutable? (cont.) • Immutable.js is fast enough and memory
optimisation • Why Om is faster ? Data or Value is immutable in Clojure/ClojureScript • Immutable + PureRenderMixin
Simple Made Easy
Performance
Performance • Pure Component (prop & state) • shouldComponentUpdate •
Don’t update when its the same
Performance (cont.) • Container Component Pattern • Container Component as
Data Layer • Data fetching • Component is all about its behaviour • Testing Container or Gallery Container
Components Communication
How to Communicate • Parent - Children • Use Callbacks
• No relationship • Global event hub • Flux • Codecademy • Adapter, broadcast • Channel (CSP) • Cursor (react-cursor)
None
Conclusion
Conclusion • Embracing Immutable data for the future (JavaScript) development
• Componentize your User Interface • Loose coupling your component • Container Component • General Component • You can pick the suitable solution for your needs
None
Conclusion(cont.) • Watch Simple made easy • Try Clojure/ClojureScript
FAQ