Hey Underscore, You're Doing It Wrong!
What it is
Brian Lonsdorf explains why Underscore.js falls short as a functional programming library, then introduces currying, composition and point-free style in JavaScript. He argues for data-last argument ordering.
Why Hacker News recommends it
A repeatedly recommended introduction to functional JavaScript that explains currying and why data should come last.
- 9 people recommended it
- 7 different months
- 3 strong recommendations
- first 2014, last 2022
What HN commenters said
“I also very much recommend this video by Brian Lonsdorf”
Brian Lonsdorf's talk on functional style in JS.
lrichardson, 2014-04 · Strong recommendation · in “Functional JavaScript, Part 3: apply, call, and the arguments object”
“It's well worth the watch.”
Shows how param order and currying yield short expressive code.
wizao, 2015-01 · Strong recommendation · in “Lodash v3.0.0”
“I find this talk inspiring.”
Inspiring talk on where Underscore.js went wrong for FP.
r3a1d33p, 2022-08 · Strong recommendation · in “Ask HN: Learning Functional Programming in 2022?”
“More info on the topic”
More info on Ramda-style function composition.
grayrest, 2014-07 · Recommendation · in “Don’t Be Scared Of Functional Programming”
“It is much better than the title would suggest :)”
Much better than the title suggests.
hueyp, 2014-07 · Recommendation · in “Videos about JavaScript”
“I'm a javascript programmer introduced to these concepts via [1]”
Introduced point-free style in JavaScript to the commenter.
lsdafjklsd, 2014-07 · Recommendation · in “A Gentle Introduction to Monad Transformers – or, Values as Exceptions”
“If you're familiar with javascript, have a look at”
Suggested for JavaScript users learning functional programming.
ignoramous, 2015-07 · Recommendation · in “Mostly Adequate Guide to Functional Programming in JavaScript”
“this video gives a pretty good explanation in ~30 minutes”
Good ~30 minute explanation of why data comes last.
patricklynch, 2016-07 · Recommendation · in “Just: A library of dependency-free JS utilities that do just do one thing”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: currying, function composition, point-free, underscore.js, ramda
Also recommended by the same people
talkAWS re:Invent 2016: Tuesday Night Live with James HamiltonAmazon Web Services · 5 HN recommenders · 2016–2023
talkTracy Young Speaks at Female Founders Conference 2015Y Combinator · 2 HN recommenders · 2016–2022
talkAWS re:Invent 2018: How AWS Minimizes the Blast Radius of Failures (ARC338)Amazon Web Services · 2 HN recommenders · 2019–2023
talkZebras All the Way Down - Bryan Cantrill, Uptime 2017Code & Supply · 6 HN recommenders · 2018–2025
interviewJeff Bezos 1997 InterviewChuck Severance · 3 HN recommenders · 2021–2025
explainerSimulating an epidemic3Blue1Brown · 8 HN recommenders · 2020–2023
lecturePaxos lecture (Raft user study)Diego Ongaro · 6 HN recommenders · 2013–2024
talkBret Victor - Inventing on PrincipleRui Oliveira · 12 HN recommenders · 2013–2025