~/talk

Do or don’t There’s no try Or is there The power of monads explained Sort of

Talkat Build Stuff 2017 · 2017-11-15..11-19· [functional-programming]
slides:none on file

Explains monads by building concrete boxes: a Try monad implemented in Java (and ports to TypeScript and C#), a Maybe/Promise examples pattern to eliminate null checks and chain async calls, and a lightweight case monad to replace switch/case. Shows map/flatMap/recover semantics, runs TypeScript unit tests that pass, and demonstrates fewer try/catch and nested ifs (example: a COBOL file with ~36,000 lines and ~1,000 ifs). Claims result is clearer, more testable code and automatic exception propagation.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:58Legacy code challenges
  3. 6:42Programming history
  4. 8:35Functional programming basics
  5. 13:02Demystifying monads
  6. 17:38Implementing the Maybe monad
  7. 24:05Asynchronous handling
  8. 29:51Monads for control flow
  9. 33:01The Try monad
  10. 43:40Live coding demonstration
  11. 50:48Conclusion and Q&A
~/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.