github.com/gcanti/retry-ts by the author of fp-ts
120
Slide 121
121
Slide 122
122
Slide 123
123
Slide 124
You can’t just stop
speaking about FP
Slide 125
125
Slide 126
Slide 127
127
Slide 128
128
Slide 129
129
Slide 130
✅
130
Slide 131
☑
✅
☑
131
Slide 132
132
Slide 133
133
Slide 134
134
Slide 135
✅
135
✅
Slide 136
☑
✅ ☑
☑
136
Slide 137
137
Slide 138
138
Slide 139
139
Slide 140
140
Slide 141
☑
☑ ☑
☑
✅ 141
Slide 142
Slide 143
Slide 144
Slide 145
Slide 146
Сode examples: done
146
Slide 147
What we achieved ⛳ Flexible Combine different retry policies
⛳ Predictable Know your errors in advance
⛳ Isolated side effects Combine complex tasks without execution 147
Problem - Solution Empty values
➡
Option
Exceptions
➡
Try (or Either)
Async side effects
➡
Task / TaskEither
150
Slide 151
Remember?
Slide 152
Option Try, Either Task, TaskEither
152
Slide 153
One last thing FP is about composition: Function composition Monadic composition
153
Slide 154
Conclusions
Twitter: @oopets 154
Slide 155
The last thing Composing Software: The Book E. Elliot Functional Programming in Scala P. Chiusano, R. Bjarnason Blog: https://dev.to/gcanti (fp-ts) 155