Everything You Always Wanted to Know About Functional Programming...
summary
A live-coding session refactors an imperative JavaScript movie-search into a pipeline of pure functions using currying, partial application, and closures. The demo shows concrete steps—extracting predicates, closing over movie values, switching push to concat and using collection.filter, rewriting with arrow syntax, and isolating side effects by returning effectful functions—then reproduces the same code in Haskell.
AI-written summary · about
chapters (18)
- 0:00Functional programming
- 1:28Movie search problem
- 2:37Imperative to procedural
- 5:05Side effects and risks
- 7:16Limiting side effects
- 8:43Detecting side effects
- 11:28FP principles
- 13:17First-class functions
- 15:06Closures in FP
- 18:29Side effects at edges
- 21:36Push vs concat
- 24:02Currying benefits
- 27:27Partial application
- 31:05Filter in FP
- 34:45Declarative FP power
- 35:30Haskell proof
- 39:37Choosing an FP language
- 41:45Q&A
related talks
45mFP: The Good, the Bad and the Ugly
51mPragmatism, Puritanism and Functional Programming
14mAchieving High-Performance the Functional Way - A Functional Pearl on Expressing High...
58mSome History of Functional Programming Languages
57mSome Context for Pure FP Concepts and Style: A Retrospective
44mFunctional Programming: Failed Successfully
43mThinking Functionally with C#
26mEssential Functional Structures: Functor, Applicative and Traverse
