Crockford On Monads And Gonads
Crockford On Monads And Gonads
Written by Ian Elliot   
Friday, 14 December 2012

If you have wondered what monads are all about. Doug Crockford, author of "JavaScript The Good Parts", stars in a video explaining functional programming and monads in general.

In this evening keynote from YUIConf 2012, Douglas Crockford discusses one of the most elusive of all programming concepts: Monads. To quote:

In addition to it begin useful, it is also cursed and the curse of the monad is that once you get the epiphany, once you understand - "oh that's what it is" - you lose the ability to explain it to anybody.

In this talk, Crockford attempts to break the long-standing Monad tutorial curse by explaining the concept and applications of monads in a way that is actually understandable to the audience.

On the way he discusses first class functions and JavaScript's role in making them commonplace. He also compares the programmer's approach to functions and the mathematician's approach. He also discusses how to convert JavaScript into a pure functional language and why you really don't want to.

The second half of the video seems to diverge  onto concurrency and asynchronous programming, which is also worth seeing for  an insight into why threads are evil. However, the twist is that promises are monads.

Watch this video, it may be an hour long but it will increase your understanding:


The short version of the message is that monads are a way of getting around the immutability that is a central principle of functional programming. This means that within a language that has mutable data structures and functions, monads aren't really relevant and you don't need to worry about them.


And don't miss the gem right at the start:

Fortran was developed before lowercase was invented so everything is in uppercase.

and the wonderful insult  about syntax coloring -

" make it easier for kindergarteners to do programming... everything's a different color. For some people that seems to make a lot of difference. I find it doesn't do much for me because I'm more of a grown up."

and on Java:

"Sometimes it seems that Java was optimized for creating null pointer exceptions."

Related Articles


To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.





blog comments powered by Disqus


Gordon Bell Prize For Earth Shattering Research

For the second year in a row a Chinese team has been awarded the ACM Gordon Bell Prize, presented annually to recognize outstanding achievement in high-performance computing. This year the focus  [ ... ]

Minix Inside!

What is the most used operating system? You might say Windows and then you might remember all those servers and opt for Linux, but either way you would be wrong. And no, it isn't OSX or Android. It is [ ... ]

More News

Last Updated ( Friday, 14 December 2012 )

RSS feed of news items only
I Programmer News
Copyright © 2017 All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.