codeinabox@programming.dev to Programming@programming.devEnglish · 6 days agoAnecdotally, programmers dislike "reduce"evanhahn.comexternal-linkmessage-square5linkfedilinkarrow-up12arrow-down10
arrow-up12arrow-down1external-linkAnecdotally, programmers dislike "reduce"evanhahn.comcodeinabox@programming.dev to Programming@programming.devEnglish · 6 days agomessage-square5linkfedilink
minus-squareFluidBeef@quokk.aulinkfedilinkEnglisharrow-up1·6 days agoIsn’t reduce just aggregation operations such as count, sum, etc? What’s even the alternative there if someone disliked doing aggregation for some reason? What if I anecdotally disliked subtraction?
minus-squareverstra@programming.devlinkfedilinkarrow-up1·6 days agoIt’s aggregation in general. It’s the iterator function you can use to implement sum, or count, or both at the same time. This post is just saying that’s interesting that people dislike is more than say map or filter
Isn’t reduce just aggregation operations such as count, sum, etc? What’s even the alternative there if someone disliked doing aggregation for some reason? What if I anecdotally disliked subtraction?
It’s aggregation in general. It’s the iterator function you can use to implement sum, or count, or both at the same time.
This post is just saying that’s interesting that people dislike is more than say map or filter