On one hand, monad is "just" a relationship between a type and two functions. A lot of different types can have these functions defined on them; there is no inherent meaning to them.
-
Show this thread
-
However, monads have become deeply associated with Haskell because they're used pervasively in the language for modeling side effects -- time, state, I/O, etc. Within the context of haskell, it's useful to understand how dealing with state is "just like" flatMapping a list.
1 reply 0 retweets 6 likesShow this thread -
But in the context of JavaScript, its harder to make the case that you should care: side effects are totally uncontrolled and the stdlib has basically no monadic types or combinators.
1 reply 0 retweets 6 likesShow this thread -
the lack of static type inference doesn't help either.
1 reply 0 retweets 5 likesShow this thread -
to make JS developers care about monads, you _first_ have to make them care about the problems that monads can solve, _then_ give them the tools to solve them monadically; without those any "monads for JS developers" post or talk is doomed.
1 reply 0 retweets 7 likesShow this thread -
Justin Falcone Retweeted Justin Falcone
anyways, I was tweeting about the difficulty of explaining a _different_ abstract topic in an enormous thread, and made the briefest of allusions to all this. guess what kind of responses I gothttps://twitter.com/modernserf/status/884872118491652096 …
Justin Falcone added,
1 reply 0 retweets 4 likesShow this thread -
Justin Falcone Retweeted Chris Allen (Easter!)
Justin Falcone added,
1 reply 0 retweets 4 likesShow this thread -
Justin Falcone Retweeted Eric Elliott
Justin Falcone added,
1 reply 0 retweets 3 likesShow this thread -
Justin Falcone Retweeted Tony Morris
Justin Falcone added,
1 reply 0 retweets 3 likesShow this thread -
these people are not _randos_, they're all prominent people in their respective communities. None of them follow me; I have to assume they all have alerts set up for the word "monad" just in case they needed to correct someone
3 replies 0 retweets 7 likesShow this thread
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.