Saturday, February 7, 2015

Does jQuery expose a monadic interface?

This content has moved permanently to:
https://blog.jonm.dev/posts/does-jquery-expose-a-monadic-interface/

4 comments:

  1. While jQuery behaves a little like a monad it isn't one.

    Mainly because you the your values can be accessed outside the monad and that it doesn't work on arbitrary types.

    A good summary and other examples of why it isn't a monad: http://www.quora.com/Is-jQuery-a-monad

    ReplyDelete
  2. If you like JQuery like programming Ed Kmett wrote a library called Lenses (which aren't monads either):
    https://wiki.haskell.org/LensBeginnersCheatsheet

    Ed also helped dispel jQuery as a monad a few year ago:
    http://www.reddit.com/r/haskell/comments/ive1n/you_got_your_type_class_in_my_jquery_applicative/c26y5oj
    http://blog.jorgenschaefer.de/2013/01/monads-for-normal-programmers.html

    ReplyDelete
  3. Re: this conversation, this was a good post:

    http://walpurgisriot.github.io/blog/2013/12/03/the-monad-was-inside-you-all-along.html

    ReplyDelete