Do or don’t There’s no try Or is there The power of monads explained Sort of
summary
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
chapters (11)
- 0:00Introduction and background
- 2:58Legacy code challenges
- 6:42Programming history
- 8:35Functional programming basics
- 13:02Demystifying monads
- 17:38Implementing the Maybe monad
- 24:05Asynchronous handling
- 29:51Monads for control flow
- 33:01The Try monad
- 43:40Live coding demonstration
- 50:48Conclusion and Q&A
related talks
39mDemystifying Monads with Java
36mAn introduction to monadic structures and functional programming
42mMonads you already use without knowing it
44mIO monad & Error management: From Exceptions to Cats MTL
34mMo' Problems, Mo 'Nads
01h 03mMonads in Modern C++
48mUnlocking the Magic of Monads with Java 8
30mMonad for dummies
