News for hackers. Stuff that matters.
Re:Monads for Normal Programmers by Peaker on Friday February 08, 2013 @12:00PM (#5188805)
It does not cover any of the interesting traits of Monads.

I could try to explain Monads in this comment, but others have already done it well.

Any explanation of Monads must at least cover the actual Monadic operations and the laws that relate them. Also, all of the examples he brings are not actually Monads, as explained by others.

Re:Monads for Normal Programmers by seliopou on Friday February 08, 2013 @01:46PM (#5189427)
> Any explanation of Monads must at least cover the actual Monadic operations and the laws that relate them. Also, all of the examples he brings are not actually Monads, as explained by others.

That's not true at all, and thinking like that is the reason why so many awful monad tutorials exist, and everybody outside of the Haskell community immediately tl;dr's when monads are mentioned.

You don't need to understand the monad laws to use monads. You do need to understand the monad laws implement your own monad. They are two completely different levels of understanding, and there's nothing wrong with that.

Re:Monads for Normal Programmers by Ixiaus on Friday February 08, 2013 @03:20PM (#5189871)
I respectfully disagree. It wasn't until I read the typeclassopedia and the article on the Haskell category (that goes into the Monad laws, the Functor laws, &c...) extensively did I really start to understand Monads.

At first, reading all of these "tuts" or "analogies" I always thought, "Oh! It's just like an object in Python!" but boy was I wrong - no one told me I was wrong, I just figured it out after reading the more formal presentations of what a Monad is.

It was also mind opening to understand the basics of Category Theory and learn that every Monad is a Functor.

Re:Monads for Normal Programmers by Peaker on Friday February 08, 2013 @06:15PM (#5190708)
He wasn't trying to explain how to use monads. There are good tutorials that do that. He was trying to explain what they are. And that definitely involves their operations and the laws that apply.