Main Content
Advanced Rails Design: Use Fancy OO Techniques Without Turning Ruby into Java
A talk by Noel Rappin at MountainWest Ruby Conf 2012
About the Talk
March 17, 2012 5:00 AM
Salt Lake City, UT
Salt Lake City, UTAs Rails applications have grown and become more complex, limitations of the classic "Fat model, skinny controller" architecture have become evident. Large model classes and tight database coupling become difficult to maintain and slow to test. There have been many attempts to manage this issue. Overgeneralizing, these structures tend to add additional architecture layers that use ActiveRecord as a dumb model and use some form of dependency injection to allow for more dynamic management of object relationships.
All this sounds great, but if you came to Rails precisely because it didn't have the kind of architectural overhead that more complex frameworks required then you're probably looking at these ideas with some skepticism.
In this workshop, we'll show how to apply these models to your daily Rails development without burying you in a pile of complicated overhead. We'll talk about dependency injection, role or service based architecture, and how to use these to make your ongoing development life easier. We'll also cover how these techniques make it easier to write low-overhead super-fast tests to make your TDD process fly.
comments powered by Disqus