Rack Middleware as a General Purpose Abstraction by John Bender

Channel:
Subscribers:
42,100
Published on ● Video Link: https://www.youtube.com/watch?v=fcNaiP5tea0



Duration: 22:04
824 views
3


We've all seen the monolithic Rails model, pages and pages of methods all dumped into one class. Inevitably someone starts moving things around just to feel better about the loc count without making any real difference. How can we reify actions on an object and simplify our classes?

In this talk we'll examine Rack middleware as a general purpose method of object composition, see examples of it at work in Vagrant, and use these ideas to simplify an existing application.

Help us caption & translate this video!

http://amara.org/v/FGkq/







Tags:
larubyconf
larubyconf2012
Ruby (programming language)
rack
middleware
abstraction