The Power of Composition
summary
Argues composition builds large systems from tiny reusable functions and types, demonstrated with a Roman‑numerals pipeline, a composable FizzBuzz using a two‑track result type, and a complete object‑free web app (F# examples, C# shown where helpers are needed). Shows currying and partial application turn multi‑arg functions into chainable one‑arg functions, uses bind/flatMap for branching results (monads), and Kleisli-style composition for HTTP handlers (async option httpContext, used in Giraffe). All examples are implemented and shown working.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:47The Power Of Composition
- 1:58Prerequisites for understanding composition
- 2:51Lego Philosophy
- 6:48Four ideas behind FP
- 31:04The Replace function
- 40:06A simple F# implementation
- 40:53Pipeline implementation
- 50:53FP terminology
- 56:47A complete web app
- 58:34Review
related talks
01h 01mThe power of composition
01h 02mThe Power of Composition
01h 01mFunction Composition in Programming Languages
59mPipeline-oriented programming
42mThe Power of Function Composition
57mBuilding an Intuition for Composition
48mThe Power of Function Composition
01h 06mThe Functional Programmer's Toolkit
