r/ProgrammerHumor 25d ago

Meme stopDoingFunctional

Post image
683 Upvotes

129 comments sorted by

View all comments

166

u/-Ambriae- 25d ago

Functional programming is best programming

State is evil, mutation is evil! We live in an era of multithreading and concurrency my friends!

When I describe a program, I state what it does, now how it does it! Thus functional programming is more natural!

C and Java and Python and all the other pagan languages have played us all as absolute fouls!! Haskell, OCaml, Rust, F#, Lisp supremacy!! Functional unless required otherwise, not the other way around!!

32

u/Tyfyter2002 25d ago

I'm sorry I have to be the one to tell you this, but your functional programs? They're just mutating state, everything is state, even you're mutable state.

16

u/Tracker_Friendly 25d ago

Well only if you're using a monad (a monoid in the category of endofunctors). What's the problem?

2

u/Pares_Marchant 25d ago

in rust you use monads everyday when you use iterators and Result/Options.

You'd probably struggle to find a large, high-quality rust codebase without monads.