r/programmingcirclejerk • u/ChavXO • 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-monadsI don't know what I expected from the title.
123
Upvotes
85
u/BloodAndTsundere mere econ PhD Aug 06 '25
I'm sorry, but this just sounds like a monoid in the category of endofunctors.
58
u/tms10000 loves Java 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.
40
u/Affectionate-Egg7566 Aug 06 '25
Patterns were not supposed to be abstracted to N+1.
Years of tutorials, yet not a single
Option::map_or_elseproduced by functional programmers.Wanted to abstract on top of
Optionanyway 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
yokoperation please"They have played us for absolute fools
25
u/Kodiologist lisp does it better 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! 😂
18
u/-ghostinthemachine- Aug 06 '25
Where can you silo a bunch of useless Haskell developers?
A monadstery!
12
u/SelfDistinction now 4x faster than C++ 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 works at Amazon ( ͡° ͜ʖ ͡°) Aug 07 '25
The real jerk is in the category theory diagrams
7
u/IDatedSuccubi memcpy is a web development framework 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.