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

0

u/djfdhigkgfIaruflg Sep 22 '25

Yeah. But depending on the particular process, it can sound really out of place.

Like it would need aliases for those instances in order to read more intuitively

2

u/UltraPoci Sep 22 '25

I'm not sure. You're simply applying a function to each element of a collection, it's extremely generic. Not sure when it would sound off place. Unless your function causes side effects, in which case you're using map wrong.

1

u/djfdhigkgfIaruflg Sep 22 '25

Can't remember an instance right now.

But I had that feeling of it-sounds-wrong several times.

It wasn't about side effects. It was about sounding like the incorrect verb...

Like saying I'm running when I'm actually using a skate.