4 ms·
Can you recommend a good one? ... I hardly have time to write code to learn it like people say is necessary. The _easiest_ way to learn monads is through co
by seagreen 10y ago
Can you recommend a good one? ... I hardly have time to
write code to learn it like people say is necessary.
The _easiest_ way to learn monads is through code (in haskell they're just a tricky typeclass: http://dev.stephendiehl.com/hask/#eightfold-path-to-monad-satori http://dev.stephendiehl.com/hask/#eightfold-path-to-monad-sa...) If you don't want to write code you could learn them like a mathematician from first principles (https://en.wikipedia.org/wiki/Monad_(category_theory) https://en.wikipedia.org/wiki/Monad_(category_theory)), but that seems so much harder to me I'm not sure why you would.
- pron 10y agoPrecious few mathematicians ever learn what monads are...
- Dr_tldr 10y agoIs there a non-haskell resource on monads you could recommend? Anything that starts with "first, learn haskell" is probably not the easiest way, assertions from people who already know haskell notwithstanding.
- seagreen 10y agoGreat point! I found this for python: https://www.stephanboyer.com/post/9/monads-part-1-a-design-pattern https://www.stephanboyer.com/post/9/monads-part-1-a-design-p..., but it definitely focuses more on explanation than practical use. A list of "how to practice with monads in various languages" would be a neat thing to have.