News for hackers. Stuff that matters.
Re:Go Turns 10 by cle on Saturday November 09, 2019 @11:40AM (#21492505)
I’ve seen confusion over reduce happen in Java, Ruby, Groovy, JavaScript, Scala, and Python.

Reduce is quite elegant for certain kinds of problems. But in most practical settings, knowing when to reach for reduce vs something else is hard to know, and everyone has different opinions on it. Personally, I like to sidestep those kinds of decisions/discussions whenever I can, because it just gets in the way of actually delivering stuff.

There are no comments on this comment yet.