Programming Safely in an Uncertain World (Part 1)
summary
Claims that algebraic types let JavaScript handle failure declaratively and that small combinators collapse uncertainty into one result while leaving error handling to callers. Uses Node and sanctuary.js to define Maybe, Either, Future and shows concrete behavior: parseInt examples produce 42 11 and NaN; a pipeline breaks "I love pipelines" into words maps lengths to 1 4 9 takes sqrt and sums to 6. Demonstrates map and chain plus a tap helper, builds working examples step by step.
AI-written summary · about
chapters (9)
- 0:00Start
- 6:19Type Signatures
- 11:02Javascript Equivalents
- 19:41Function Composition
- 20:36Specialize a Type
- 22:24General Type Signatures
- 33:25Warm-Up Challenge
- 34:29Lines Function
- 40:23A One Dimensional Array








