News for hackers. Stuff that matters.
Re:Anecdotally, Programmers Dislike "Reduce" by el_oni on Monday September 14, 2026 @10:16AM (#49697267)
Ive only used reduce at work half a dozen times and it does raise an eyebrow each time.

But for unioning a bunch of spark dataframes together i think

    df = reduce(DataFrame.union, list_of_dfs) 
is much nicer than

    df, *rest = list_of_dfs

    for other in rest:
        df = df.union(other)
People just get a bit funny, especially now you have to import it from functools
Re:Anecdotally, Programmers Dislike "Reduce" by tehnub on Thursday September 17, 2026 @12:19AM (#49736350)
Came here to comment this. I work on a team of functional-adverse devs, but they all happily use this one.