Tom Stuart - Refactoring Ruby with Monads
Channel: Codegram
Date: 2014-10-02

This is a talk from Barcelona Ruby Conference 2014 (http://www.baruco.org/).

Monads are in danger of becoming a bit of a joke: for every person who raves about them, there's another person asking what in the world they are, and a third person writing a confusing tutorial about them. With their technical-sounding name and forbidding reputation, monads can seem like a complex, abstract idea that's only relevant to mathematicians and Haskell programmers. Forget all that! In this pragmatic talk we'll roll up our sleeves and get stuck into refactoring some awkward Ruby code, using the good parts of monads to tackle the problems we encounter along the way. We'll see how the straightforward design pattern underlying monads can help us to make our code simpler, clearer and more reusable by uncovering its hidden structure, and we'll all leave with a shared understanding of what monads actually are and why people won't shut up about them.

Barcelona Ruby Conference 2014 is a conference held by Codegram. We've been running development conferences since 2012 with a goal in mind: Inspiring our audience by putting together the best speakers & talks at a privileged location in the beautiful Barcelona area.

Head over to https://conferences.codegram.com/​ for an overview of our conferences and to watch all talks. Visit https://www.codegram.com/blog/​ to learn more from our team on related topics.