~/talk

Monads Asking the Right Question

Talkat LambdaConf 2015 · 2015-05-22..05-24· [typescript]
slides:none on file

Explains monads as a concrete abstraction with two operations—unit and bind (flatMap)—and laws (left/right identity, associativity), not metaphors; shows a Maybe-based partner-lookup that replaces exceptions and a List/Many-based rum-sum for pirate ships, implements lift/map/bind (within/andThen) and for-comprehension/do desugaring to flatMap+map, and demonstrates the code running end to end with missing partners handled and totals computed; notes the odd curse of understanding and Maybe monad with unit and bind and list/sequence monad for many values

AI-written summary · about

  1. 0:00Monads introduction
  2. 1:42Why monads are hard
  3. 3:10Junior dev’s dilemma
  4. 5:19Partner lookup app
  5. 7:06Missing partners with Maybe
  6. 9:55Maybe monad intro
  7. 11:43Code with do notation
  8. 13:33Pirate monad for rum
  9. 16:03Total rum with monads
  10. 17:51What makes a monad
  11. 19:16Monad laws
  12. 20:20Closing
~/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.