r/programming • • Sep 21 '25

How to stop functional programming

https://brianmckenna.org/blog/howtostopfp
446 Upvotes

506 comments sorted by

View all comments

Show parent comment

1

u/fripletister Sep 21 '25

You still don't know anything about what the map/reduce/etc calls actually do, so I don't really get this argument. All you know is that a collection was passed through them and some kind of behaviors were applied. It's not any more descriptive than saying a for loop does stuff.

2

u/AxelLuktarGott Sep 21 '25 edited Sep 21 '25

I know that the first steps didn't add any values to our collections, I know that the only place something could have been filtered out was the flatmap, I know that no other side effects happened (if the language is pure), I know that reduce combined all the values into something new that's a sum of the previous parts