Hacker News new | ask | show | jobs
by jhanschoo 2391 days ago
Outside of the terminology and terrible, terribly abstract explanations, I find an understanding of monads to be greatly important.

> Outside of Haskell, monads are about as important in terms of learning, knowing and effectively using functional programming languages and concepts, as braces being on the same line or next line is important to learning about general programming. It's not.

For example, understanding that Promise in JS is a monad helped me figure out how to transform and combine event-triggered functions in a clean manner into promises with shared state, that had a guarantee on execution order.

And every programmer already knows monads once they start to use design patterns in lists, option, promises, io, etc.