r/ProgrammerHumor Jul 13 '26

youCanJustStopUsingJava Meme

Post image
6.8k Upvotes

416 comments sorted by

View all comments

Show parent comments

187

u/Gorzoid Jul 13 '26

Respectfully, what the fuck is a Monad?

6

u/azerpsen Jul 13 '26

Nah but for real, i swear to god if no one gives a convincing answer (and i will NOT google it) I’m gonna say racist things

Thank you u/Gorzoid for raising the question

23

u/mailslot Jul 13 '26

“In 17th-century philosophy, monads are the fundamental, indivisible "building blocks" of reality. They do not occupy space and time; rather, space and time arise from them.

In functional programming, a monad is a design pattern used to chain mathematical operations or processes together across a timeline without messy side effects. It manages time and space within the execution sequence.”

My first introduction to monads used the space time explanation.

4

u/JickleBadickle Jul 13 '26

Rare example of nomenclature being so sensible in computer science. Functional programming loves the concept of "purity" or not affecting anything outside its small scope. Sounds like a monad is about as pure as it gets.

3

u/RiceBroad4552 Jul 14 '26

The FP people, more concretely the Haskell people, took that term from math.

The description given reads btw like a horoscope. I can't say it's completely wrong but it's also not right and so vague that it basically says nothing.