3 ms·
You cannot really understand monads just by reading about them. Or I couldn’t, at least. This is a very good article about the problems with monad tutorials: h
by bspammer 4y ago
You cannot really understand monads just by reading about them. Or I couldn’t, at least.
This is a very good article about the problems with monad tutorials: https://byorgey.wordpress.com/2009/01/12/abstraction-intuition-and-the-monad-tutorial-fallacy https://byorgey.wordpress.com/2009/01/12/abstraction-intuiti...
> “Of course!” Joe thinks. “It’s all so simple now. The key to understanding monads is that they are Like Burritos. If only I had thought of this before!” The problem, of course, is that if Joe HAD thought of this before, it wouldn’t have helped: the week of struggling through details was a necessary and integral part of forming Joe’s Burrito intuition, not a sad consequence of his failure to hit upon the idea sooner.
TL;DR There’s no beautiful explanation that will help you understand, you need to get your hands dirty with code.