~/talk

Functional Design Patterns

Talkat NDC Sydney 2017 · 2017-08-14..08-18· [frontend-architecture]
slides:none on file

Uses F# code to show exact patterns: uses a NonZeroInt type and Option return to make a divide function total, demonstrates partial application for DI by baking a DB connection into a getCustomer function, extracts looping via fold to remove duplicate code, lifts functions with map for Option/List/Async, and applies bind (option/task) to flatten error handling into a linear pipeline for request validation/update/email. Shows monoids (reduce) for parallelizable aggregation and that these constructions actually simplify real code.

AI-written summary · about

  1. 0:00Introduction to FP design
  2. 3:20Core functional principles
  3. 6:13Functions and composition
  4. 9:23Functional design patterns
  5. 11:45Types as data, not behavior
  6. 15:06Domain modeling with types
  7. 16:57Designing for totality
  8. 20:52Functions as parameters
  9. 25:11Functions as interfaces
  10. 29:15Currying and partial application
  11. 32:08Pipeline processing and DI
  12. 34:37Dependency injection with partial application
  13. 37:49Continuations and chaining
  14. 40:53Monads for error handling
  15. 43:24Demystifying monads
  16. 47:18Railway oriented programming
  17. 49:41Maps and functors
  18. 52:37Monoids and aggregation
  19. 55:43Monoids in practice
  20. 1:03:54Conclusion
~/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.