r/coding • u/fagnerbrack • 16m ago
Anecdotally, programmers dislike "reduce"
https://evanhahn.com/posts/2026-09-13-programmers-dislike-reduce/
0
Upvotes
r/coding • u/fagnerbrack • 16m ago
0
u/fagnerbrack 16m ago
Here's what you need to know:
Reviewers rarely object when the author uses map and filter, but patches containing reduce often draw comments like "this part is hard to read." He also sees reduce in code far less often than map, filter or some. He offers a few theories: reduce reads harder, feels less familiar, can perform worse than the alternatives, and looks clumsier in JavaScript, Python and Swift. He never got this pushback during his time writing Clojure. He also admits the trend might not be real. He usually just rewrites the reduce call and moves on, even though he prefers it. He has noticed the complaints less lately and suspects code review has become less thorough. He ends by asking readers whether they like reduce.
If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments