OBSERVABILITY Signal 379
Anecdotally, programmers dislike reduce more than map or filter
Illustration only Photo by Ana Garnica on Unsplash
A developer documents their anecdotal observation that reduce consistently draws code review complaints about readability, while map and filter do not.
If reduce genuinely creates friction in team codebases, avoiding it may be a pragmatic local convention even when it's technically appropriate. The observation that Clojure developers didn't share this reaction suggests the issue may be language-specific rather than fundamental.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
The author consistently receives code review complaints about reduce but not map or filter.
Proposed explanations include readability, familiarity, performance, and language-specific elegance issues in JavaScript, Python, and Swift.
The author typically replaces reduce with alternative implementations rather than defending its use.
THE CLUSTER