2 ms·
The best way to understand monads is to stop reading monad tutorials and write some code. There is only one particular trick to learning monads: use the >>= ope
by yummyfajitas 17y ago
The best way to understand monads is to stop reading monad tutorials and write some code. There is only one particular trick to learning monads: use the >>= operator rather than do notation until you understand the basics. Then read this explanation of do notation:
http://en.wikibooks.org/wiki/Haskell/do_Notation http://en.wikibooks.org/wiki/Haskell/do_Notation
Actually, this is just a special case of a general rule: "The best way to understand {{programming_concept}} is to stop reading {{programming_concept}} tutorials and write some code."
- aluink 17y agoI think your general rule is only for those who learn this way. I find that a lot of programmers learn this way but not all...so this general rule isn't universal ;)