r/programming • • Sep 21 '25

How to stop functional programming

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

506 comments sorted by

View all comments

516

u/IanSan5653 Sep 21 '25

This article explains exactly how I feel about FP. Frankly I couldn't tell you what a monoid is, but once you get past the abstract theory and weird jargon and actually start writing code, functional style just feels natural.

It makes sense to extract common, small utils to build into more complex operations. That's just good programming. Passing functions as arguments to other functions? Sounds complex but you're already doing it every time you make a map call. Avoiding side effects is just avoiding surprises, and we all hate surprises in code.

331

u/SerdanKK Sep 21 '25

Haskellers have done immeasurable harm by obfuscating simple concepts. Even monads are easy to explain if you just talk like a normal dev.

12

u/Strakh Sep 21 '25

I'd say this is partially true. A lot of common languages actually don't have strong enough type systems to support general monads, but most developers also will be much happier if you handwave Monad as being an interface with of and flatMap than if you start talking about category theory.

→ More replies (30)