MONADS - CODING FUNCTIONALLY
summary
Presents concrete JavaScript implementations of functors and monads (of/map/flatMap), demonstrates Maybe and Either patterns to handle nulls instead of try/catch, and treats Promise as a monad with chaining examples. References the fantasy-land spec and V8 internals' monad-like containers, and runs live code demos while noting the examples are practical but not yet production-deployed with caveats about real-world adoption.
AI-written summary · about
chapters (19)
- 0:00Start
- 1:08Functional Programming
- 2:39Core Concepts
- 3:08Pure Functions
- 3:47Composing Functions
- 7:45Trade-offs
- 9:00Fantasy Land
- 10:20Composing simple functions
- 11:28Requirements for Functor
- 12:28Functor explained
- 14:08String Functor
- 15:01Functor Properties
- 16:36Monad Requirements
- 16:59Monad laws
- 18:55Maybe Monad
- 20:48Monad requirements
- 21:38Monad requirement - Doll
- 22:18Doll example
- 24:09Promise example








