ELSEIF
Your brief EB
238 stories from 189 feeds 1208 clusters Refreshed 4 minutes ago next pull 04:26

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.

WHY IT MATTERS

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 source

The three things worth knowing

01

The author consistently receives code review complaints about reduce but not map or filter.

02

Proposed explanations include readability, familiarity, performance, and language-specific elegance issues in JavaScript, Python, and Swift.

03

The author typically replaces reduce with alternative implementations rather than defending its use.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
evanhahn.com via Lobsters Anecdotally, programmers dislike "reduce" Open ↗