3 ms·
> Monad tutorials are hard to understand because nobody actually wants to tell you what a monad is, because that would defeat elitist thinking. Tutorials aren'
by dragonwriter 5y ago
> Monad tutorials are hard to understand because nobody actually wants to tell you what a monad is, because that would defeat elitist thinking.
Tutorials aren't for telling you what a thing is but for developing an intuition around why, in practical terms, it is. Telling you what a monad is is easy, brief, and fully handled by the typeclass definition and monad laws. But a tutorial which just presented them, while perfectly accurate at telling what a monad is, would be a crap tutorial.
> A monad is just a very concise definition of a List
Its not, because monads are much broader than lists, and the definition of a monad is less concise than that of a list. So its pretty much exactly not that.
That monads encapsulate something like your vague concept of “listiness” in some sense is usually part of tutorials, because its a useful fuzzy intuitive handle. But its not alone sufficient to develop enough understanding to use, any more than the definition and laws are, so tutorials need to, and do, present more.
They tend to suck because monads are a very abstract concept, and one which doesn't closely correspond to thing people tend to have a good concept of outside of people versed in category theory (I assume, not being one of those people I can't say for sure.) But the high level of abstraction is why they are useful, because they capture related parts of behavior of things that intuitively don’t seem very similar.