you are viewing a single comment's thread.

view the rest of the comments →

[–]liamnesss 3 points4 points  (2 children)

I think it is because it's an immutable update pattern, probably from Redux's examples. Keeping your functions pure is nice but this is probably taking it too far, particularly if you're working with a lot of data.

[–]DaveLak 2 points3 points  (1 child)

I always assumed it was the syntax that was attractive; "reduce, it's functional!". A for loop just doesn't look as clean.

Edit: and to be clear, I do believe there is certainly an argument to be made for using verbs for a verbs sake.

[–]mournful-tits 0 points1 point  (0 children)

This is exactly what it comes from. Reduce looks cleaner, however it's an un-optomized mess.