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:

Anonymous said...

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

Andrew said...

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

Pam Selle said...

Re: this conversation, this was a good post:

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

Blog said...

Hi nice readingg your blog