News for hackers. Stuff that matters.
Re:Anecdotally, Programmers Dislike "Reduce" by remywang on Wednesday September 16, 2026 @08:59PM (#49735151)
I’m so confused, how are you supposed to perform aggregation without reduce? This is like saying “I like plus and times, but I don’t like divide because it’s hard.” I mean sure, but you need it??
Re:Anecdotally, Programmers Dislike "Reduce" by jay_kyburz on Wednesday September 16, 2026 @09:08PM (#49735215)
Yeah, but you never _need_ reduce. You can just have a boring loop.

I like boring code.

Re:Anecdotally, Programmers Dislike "Reduce" by lkuty on Thursday September 17, 2026 @01:36AM (#49736784)
Not in Elixir. Unless you use tail recursion to simulate the loop. I love reduce and the other functions of the Enum module, so I have 165 calls to reduce in my code base (plus 338 map and 116 filter). It's the swiss army knife of functional programming and I don't see any problem with its usage.