A Skeptics guide to functional style javascript
summary
Argues JavaScript is not purely functional but shows concrete, practical techniques: use map/reduce/filter instead of manual for-loops to avoid mutable state and enable chaining; write small named pure functions (e.g., addOne) for readability and reuse; use currying for event handlers to capture an index via closure instead of looping; demonstrates a simple identity monad via bind and points out Promises behave like monads; warns immutability isn’t enforced in JS so these patterns are style choices that make code easier to reason about and test.
AI-written summary · about
chapters (14)
- 0:00Intro
- 4:27Functional programming
- 8:51Functional style JavaScript
- 11:55The tooling
- 13:34Europe at night
- 14:59Looking at some code
- 17:45Simplifying the code
- 19:06Pure functions
- 21:59Less complexity
- 26:15Immutable
- 30:44Chaining
- 34:31Currying
- 38:48Monads
- 41:33Identity Monad
related talks
45mA Skeptics guide to functional style javascript
48mA Skeptic's Guide to Functional Style Javascript
20mFunctional JavaScript
34mFunctional JavaScript for everyone
25mA Guide To Functional Programming
53mMaintainable JavaScript with Functional Patterns
12mAn introduction to functional programming
49mGoing Functional with JS
