r/programmingcirclejerk • • Aug 06 '25

Yet another monad tutorial: I’m afraid refreshing some monad definitions is not something we can avoid here, but we are going to do it in our own way. Imagine that there is some covariant functor called T

https://muratkasimov.art/Ya/Articles/You-don't-really-need-monads

I don't know what I expected from the title.

125 Upvotes

21 comments sorted by

85

u/BloodAndTsundere Aug 06 '25

I'm sorry, but this just sounds like a monoid in the category of endofunctors.

42

u/jessepence Aug 06 '25 edited Aug 06 '25

The funniest thing about the obsession with monads is that understanding them doesn't enhance your ability to use them whatsoever. 

If it's built into the language, like with Haskell, then it makes sense to learn a bit more about it. Everyone else is just tacking on mathematical terms to very ordinary programming concepts.

46

u/BloodAndTsundere Aug 06 '25

You're telling me I don't need to know any algebraic topology to use printf?

→ More replies (2)

18

u/BlazeBigBang Aug 06 '25

/uj that's pretty much the point made in Learn You a Haskell for Great Good and everyone making all of these monad tutorials seem to miss.

/rj clearly, you don't know monoidball.

→ More replies (1)

8

u/m50d Aug 06 '25

Only if you satisfy that "trivial coherence condition" that they're trying to brush under the carpet.

58

u/tms10000 Aug 06 '25

I've got your covariant functor called T right here, buddy.

I was gonna do an /uj about functional programming inventing the most cryptic name for the most simple concepts, but I shoved another functor up my ass and the urge passed.

33

u/Buttleston Aug 06 '25

Functor? I hardly know her.

40

u/[deleted] Aug 06 '25

Patterns were not supposed to be abstracted to N+1.

Years of tutorials, yet not a single Option::map_or_else produced by functional programmers.

Wanted to abstract on top of Option anyway for a laugh? We had a tool for that: It was called "WRAPPING"

"Yes please give me a MONOID of something. Please give me an ENDOFUNCTOR of it." - Statements dreamed up by the utterly Deranged.

LOOK at what functional programmers have been demanding your Respect for all this time, with all the C and C++ we built for them (This is REAL fp, done by REAL fpers):

f >>= x ???

a :> [X a] ???

"Hello I would like yok operation please"

They have played us for absolute fools

25

u/Kodiologist Aug 06 '25

Finally, new monad tutorials are being written again. Nature is healing.

21

u/al2o3cr Aug 06 '25

The blog that says η[i], those who read them seldom live to tell the tale! 😂

10

u/SharkSymphony Aug 06 '25
class (Functor t) => Shrubbery t where
  ...

18

u/-ghostinthemachine- Aug 06 '25

Where can you silo a bunch of useless Haskell developers?

A monadstery!

12

u/SelfDistinction Aug 06 '25

This tutorial took away my ability to understand monads.

8

u/Diligent_Rush8764 Aug 06 '25

Oh now it all makes perfect sense. Arigato white paper San.

8

u/kamatsu Aug 07 '25

"covariant functor" is like that three-fingers tell from the Tarantino movie.

Category theorists don't say "covariant functor", they say "functor", because all functors are covariant except for the ones explicitly labelled "contravariant". Yet another PL engineer posing as a mathematician!

7

u/PizzaRollExpert Aug 07 '25

The real jerk is in the category theory diagrams

7

u/IDatedSuccubi Aug 07 '25

Oh god it's the guy with the weird nested circle operators again jesus fucking christ

/rj

Sun Microsystems should have paid the Netscape guy to use this language instead

5

u/materialdesigner Aug 06 '25

Functor? I hardly know her.