Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
@cowboyd State of Enjoyment
Slide 2
Slide 2 text
@cowboyd @cowboyd
Slide 3
Slide 3 text
@cowboyd https://frontside.io
Slide 4
Slide 4 text
@cowboyd numbers can increment
Slide 5
Slide 5 text
@cowboyd Redux
Slide 6
Slide 6 text
@cowboyd MobX
Slide 7
Slide 7 text
@cowboyd setState
Slide 8
Slide 8 text
@cowboyd Ember Controller
Slide 9
Slide 9 text
@cowboyd Why?
Slide 10
Slide 10 text
@cowboyd numbers can increment
Slide 11
Slide 11 text
@cowboyd Arrays can push
Slide 12
Slide 12 text
@cowboyd Booleans can toggle
Slide 13
Slide 13 text
@cowboyd What is a Boolean?
Slide 14
Slide 14 text
@cowboyd False True toggle() toggle() set(false) set(true)
Slide 15
Slide 15 text
@cowboyd False True toggle() toggle() set(false) set(true)
Slide 16
Slide 16 text
@cowboyd False True toggle() toggle() set(false) set(true)
Slide 17
Slide 17 text
@cowboyd False True toggle() toggle() set(false) set(false)
Slide 18
Slide 18 text
@cowboyd False True toggle() toggle() set(false) set(true) set(false) set(true)
Slide 19
Slide 19 text
@cowboyd False True toggle() toggle() set(false) set(true) set(false) set(true) Boolean
Slide 20
Slide 20 text
@cowboyd
Slide 21
Slide 21 text
@cowboyd False True toggle() toggle() set(false) set(true) set(false) set(true)
Slide 22
Slide 22 text
@cowboyd
Slide 23
Slide 23 text
@cowboyd False True toggle() toggle() set(false) set(true) set(false) set(true)
Slide 24
Slide 24 text
@cowboyd False True toggle() toggle() set(false) set(true) set(false) set(true)
Slide 25
Slide 25 text
@cowboyd Reinventing Very Small Wheels One very small wheel at a time
Slide 26
Slide 26 text
@cowboyd Small Wheels: Boolean Controller
Slide 27
Slide 27 text
@cowboyd Unstated
Slide 28
Slide 28 text
@cowboyd setState
Slide 29
Slide 29 text
@cowboyd Relax Charles it’s just numbers. It’s just booleans
Slide 30
Slide 30 text
@cowboyd Booleans aren’t hard They just get hard very quickly with composition.
Slide 31
Slide 31 text
@cowboyd Boolean
Slide 32
Slide 32 text
@cowboyd Boolean Todo isCompleted
Slide 33
Slide 33 text
@cowboyd Boolean Todo isCompleted Boolean Todo Array isCompleted … Boolean Todo isCompleted TodoList todos
Slide 34
Slide 34 text
@cowboyd Redux
Slide 35
Slide 35 text
@cowboyd Numbers increment Booleans toggle Arrays push
Slide 36
Slide 36 text
@cowboyd
Slide 37
Slide 37 text
@cowboyd
Slide 38
Slide 38 text
@cowboyd
Slide 39
Slide 39 text
@cowboyd Bring the Type y’all!
Slide 40
Slide 40 text
@cowboyd numbers can increment
Slide 41
Slide 41 text
@cowboyd Redux
Slide 42
Slide 42 text
@cowboyd What about TypeScript? (and friends)
Slide 43
Slide 43 text
@cowboyd Helps your DX, not your runtime.
Slide 44
Slide 44 text
@cowboyd Then what do we want?
Slide 45
Slide 45 text
@cowboyd JavaScript* *JavaScript is a registered trademark of Oracle Corporation
Slide 46
Slide 46 text
@cowboyd JavaScript*
Slide 47
Slide 47 text
@cowboyd JavaScript* - Easy to learn
Slide 48
Slide 48 text
@cowboyd JavaScript* - Easy to learn - Cross framework
Slide 49
Slide 49 text
@cowboyd “JavaScript”
Slide 50
Slide 50 text
@cowboyd numbers can increment
Slide 51
Slide 51 text
@cowboyd “JavaScript”
Slide 52
Slide 52 text
@cowboyd
Slide 53
Slide 53 text
@cowboyd Mutation!
Slide 54
Slide 54 text
@cowboyd Easy at rest
Slide 55
Slide 55 text
@cowboyd Difficult in motion
Slide 56
Slide 56 text
@cowboyd Immutable Difficult at rest Easy in motion
Slide 57
Slide 57 text
@cowboyd Decisions
Slide 58
Slide 58 text
@cowboyd Decisions
Slide 59
Slide 59 text
@cowboyd Maybe?
Slide 60
Slide 60 text
@cowboyd Spoiler Alert no
Slide 61
Slide 61 text
@cowboyd
Slide 62
Slide 62 text
@cowboyd
Slide 63
Slide 63 text
@cowboyd
Slide 64
Slide 64 text
@cowboyd
Slide 65
Slide 65 text
@cowboyd
Slide 66
Slide 66 text
@cowboyd
Slide 67
Slide 67 text
@cowboyd Microstates.js Composable types for immutable data. https://github.com/microstates/microstates.js
Slide 68
Slide 68 text
@cowboyd Tiny API
Slide 69
Slide 69 text
@cowboyd
Slide 70
Slide 70 text
@cowboyd
Slide 71
Slide 71 text
@cowboyd
Slide 72
Slide 72 text
@cowboyd
Slide 73
Slide 73 text
@cowboyd Tiny API implicit knowledge
Slide 74
Slide 74 text
@cowboyd Benefits
Slide 75
Slide 75 text
@cowboyd Benefits Immutable
Slide 76
Slide 76 text
@cowboyd Benefits: immutable Computed Properties
Slide 77
Slide 77 text
@cowboyd Benefits: immutable Memoization
Slide 78
Slide 78 text
@cowboyd Benefits: immutable Memoization
Slide 79
Slide 79 text
@cowboyd Benefits Value Stability
Slide 80
Slide 80 text
@cowboyd Benefits: Value Stability Key Attributes
Slide 81
Slide 81 text
@cowboyd Benefits: Value Stability Key Benefits
Slide 82
Slide 82 text
@cowboyd Benefits: Value Stability
Slide 83
Slide 83 text
@cowboyd Benefits: Value Stability
Slide 84
Slide 84 text
@cowboyd Benefits: Value Stability
Slide 85
Slide 85 text
@cowboyd Benefits: Value Stability
Slide 86
Slide 86 text
@cowboyd Benefits: Value Stability Developer Managed Identity
Slide 87
Slide 87 text
@cowboyd Benefits: Value Stability `===` everywhere
Slide 88
Slide 88 text
@cowboyd Benefits: Value Stability
Slide 89
Slide 89 text
@cowboyd Benefits: Value Stability
Slide 90
Slide 90 text
@cowboyd setState Benefits: Value Stability
Slide 91
Slide 91 text
@cowboyd setState Benefits: Value Stability
Slide 92
Slide 92 text
@cowboyd Redux Benefits: Value Stability
Slide 93
Slide 93 text
@cowboyd Redux Benefits: Value Stability
Slide 94
Slide 94 text
@cowboyd MobX Benefits: Value Stability
Slide 95
Slide 95 text
@cowboyd MobX Benefits: Value Stability
Slide 96
Slide 96 text
@cowboyd Microstates Benefits: Value Stability
Slide 97
Slide 97 text
@cowboyd Microstates Benefits: Value Stability
Slide 98
Slide 98 text
@cowboyd Performant Without optimization Benefits: Value Stability
Slide 99
Slide 99 text
@cowboyd Conclusion There are a lot of tradeoffs in state management.
Slide 100
Slide 100 text
@cowboyd jQuery
Slide 101
Slide 101 text
@cowboyd
Slide 102
Slide 102 text
@cowboyd Component A new primitive for rendering
Slide 103
Slide 103 text
@cowboyd stateQuery
Slide 104
Slide 104 text
@cowboyd Microstates A new primitive for state management
Slide 105
Slide 105 text
@cowboyd Thank You.