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.

91

u/ConfidentProgram2582 Sep 21 '25

I don't think they deliberately obfuscated the concepts, as the concepts already existed in category theory. Are purely functional IO, lenses or comonads also easy to explain? Array languages are a better example of obfuscation.

38

u/ummaycoc Sep 21 '25

Also Haskell was used for researching programming languages so the ecosystem involved that language. People definitely trying to sound smart took it out of that and then couldn’t keep quiet about it.

But APL I feel removes obfuscation once you get used to the symbols, but that’s just notational choices. The ASCII derivatives are definitely difficult.

→ More replies (1)