Hey Underscore, You're Doing It Wrong!
summary
Argues Underscore.js advertises functional tools but blocks real functional patterns: Underscore reverses argument order so autocurry and partial application are awkward, and it forbids extending map so custom Maybe/Either functors can’t integrate. Shows concrete rewrites: add + autocurry, a Dot(property) accessor, composing reverse and first to make last, mapping over promises, and a compose-based pipeline that replaces chain. Mentions a forked utility called score-under created by the author and says compose-heavy code runs in production at luur.
AI-written summary · about
chapters (6)
- 0:00Start
- 2:21Currying Composition
- 14:03Category Theory
- 16:01Example of Composition
- 24:04Useful Practical Applications
- 31:31Conclusion
related talks
39mFun with Functional JavaScript
20mFunctional JavaScript
34mFunctional JavaScript for everyone
35mFunctional programming and curry cooking in JS
49mA Skeptics guide to functional style javascript
48mA Skeptic's Guide to Functional Style Javascript
12mAn introduction to functional programming
49mGoing Functional with JS
