~/talk

Purify Your Redux App

TalkinGermanat code.talks 2017 · 2017-09-28..09-29· [react, javascript]
links:none on file
slides:none on file

Shows how to decouple a Redux application by having business logic emit pure, return-value actions that describe workflows, and running those workflows in a middleware interpreter instead of performing side effects in reducers. Implements a small weather app and a middleware that interprets action-chaining sequences, mapping actions to HTTP, geolocation, and display effects, and supports Redux with Promise/Observable backends; the approach is inspired by free-monad ideas and yields a pure DSL that makes unit testing easier (example code at utinity/purify-redux-example).

AI-written summary · about

  1. 0:00Introduction
  2. 3:54Hexagonal architecture
  3. 6:03Weather app example
  4. 7:33Uncoupled version
  5. 9:20Framework dependency issues
  6. 11:10Decoupling with actions
  7. 12:58Redux for decoupling
  8. 15:31Action creators version
  9. 17:59Middleware limitations
  10. 19:25Action chaining
  11. 22:15Middleware for chaining
  12. 24:04Pure functions version
  13. 25:50DSL via actions
  14. 27:56DSL abstraction
  15. 29:07Hexagonal summary
  16. 31:19Comparison with generators
  17. 31:59Inspiration from Free Monads
  18. 33:45Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.