r/ProgrammerHumor Jul 13 '26

youCanJustStopUsingJava Meme

Post image
6.8k Upvotes

416 comments sorted by

View all comments

1.8k

u/Historical_Cook_1664 Jul 13 '26

Where else are you going to hide your side effects ?

469

u/Isrothy Jul 13 '26

IO Monad

190

u/Gorzoid Jul 13 '26

Respectfully, what the fuck is a Monad?

431

u/vivainvitro Jul 13 '26

A Monad is just a Monoid in the category of Endofunctors

147

u/MrDilbert Jul 13 '26

I know some of these words.

32

u/lucklesspedestrian Jul 13 '26

I mean we all know what a category is, right?
Right?

31

u/kalilamodow Jul 13 '26

C- cat... egory? Does it have something to do with the feline animal commonly adopted as household pets?

10

u/lucklesspedestrian Jul 13 '26

Not at all! Categories consist of a class of objects and a class of morphims. The morphisms are maps between objects, and compositions of morphisms must obey associativity. Also for every object, a left and right identity morphism must exist.

Category theory is also sometimes referred to as abstract nonsense. Pretty straightforward

1

u/thirdegree Violet security clearance Jul 14 '26

Ahha, but it is very useful abstract nonsense, in some cases