Skip to content
0:00 / 0:00

#monads#dry-monads

GoGaRuCo 2014- Refactoring Ruby with Monads

Confreaks

42K subscribers • 74 videos on Hallway • Conference channel

YouTube
  • Recommended by 1 person: 1 on Lobsters.
  • Presented by Tom Stuart

Intermediate. Assumes working knowledge.

11K views12 years ago1 recommendation

Programming languagesSoftware designRubyFunctional programmingRefactoring and legacy code

Tom Stuart demonstrates how to apply monadic design patterns to simplify and refactor complex Ruby code.

By, Tom Stuart 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. Help us caption & translate this video! amara.org/v/FTet/

Why it's here

1 person recommends this

What people say. Recommended as a highly practical and accessible explanation of monads using Ruby.

PuercoPopon Lobsters • Recommends

Refactoring Ruby with Monads