Главная
Study mode:
on
1
Intro
2
Persistent Immutable Data Structures
3
Structural Sharing
4
Directed Acyclic Graph
5
reTrieve
6
Index Trie
7
Implementation as Trie, Interface as Lists and Maps!
8
The Hash Array Mapped Trie (HAMT) is based on the simple notion of hashing a key and storing the key in a trie based on this hash value.
9
Simplicity is hard work. But there's a huge payoff. The person who has a genuinely simpler system is going to be able to affect the greatest change with the least work. He's going to kick your ass.
10
What problems does this solve anyway?
11
Concurrency, No locks!
12
Multithreading: There be dragons.
13
JavaScript is in trouble.
14
Embracing Immutability enables JavaScript's future.
15
Mutable objects complect Time and Value
16
var identity; identity = "value"; identity = "next value"
17
Immutable data removes complexity.
18
The Many Mutators Problem.
19
What changed?
20
Dirty bits
21
UI Framework coupling model class to view class.
22
Immutable change tracking
23
Memoization
24
shouldComponentUpdate()
25
Immutable Data is Faster
26
Reconciliation is pretty damn fast.
27
Reconciliation is slower than persistent data.
28
Flux stores contain mutable data.
29
Reconciliation is pretty damn fast?
30
Flux stores with immutable data!
31
Flux store is an identity New immutable values as time passes
32
Bonus: Undo is easy!
33
No more mutable state stockholm syndrome.
34
Solve problems by removing complexity.
Description:
Explore the power of immutable data structures in React applications during this conference talk from React.js Conf 2015. Dive into the world of persistent immutable data structures, learning how they work and their benefits in maintaining high-performance reads and writes. Discover techniques for implementing these structures in React applications using Immutable.js, a library of fully persistent immutable data structures. Gain insights into the Hash Array Mapped Trie (HAMT) and its role in simplifying complex systems. Understand how embracing immutability can solve concurrency issues, enhance JavaScript's future, and remove complexity in data management. Learn about the advantages of immutable data in React's reconciliation process, Flux stores, and memoization techniques. Explore practical applications, including easy implementation of undo functionality and improved state management. By the end of this talk, grasp how immutable data structures can significantly improve your React applications' performance and maintainability. Read more

Immutable Data and React - Techniques and Benefits

Meta
Add to list