Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Putting Off Persistence

Putting Off Persistence

In Rails, we have a beautiful framework that can take us from a blank slate to a fully-functional app in little time. However, doing things "The Rails Way" has a lot of implicit dependencies, including persistence. Are you really equipped to make one of the largest decisions about your app before any of your code has even been written?

By putting this decision off you can get a feel for your domain before ever committing anything to a db schema. This means fewer migrations and fewer db-related hacks. Also, these practices encourage encapsulation and interchangeability, which means you get the ability to choose which datastore is best for you. Not just on an application level, but on a per model level as well!

During the talk we’ll be walking through simple examples at different points in application lifecycle. These snapshots will address the biggest pain points of a persistence free process and leave you in a position to put off persistence in your own app development!

Lauren Voswinkel

June 08, 2013
Tweet

More Decks by Lauren Voswinkel

Other Decks in Technology

Transcript

  1. Slides Here: http://bit.ly/rn13pop I also just tweeted about it to

    #rubynation13 and @rubynation From: @laurenvoswinkel Friday, June 14, 13
  2. Continued iteration or as I like to think: "so on,

    and so forth" Friday, June 14, 13
  3. How has this helped? • New insights • Persistence layer/objects

    • Case-by-case persistence method(s) Friday, June 14, 13
  4. How has this helped? • New insights • Persistence layer/objects

    • Case-by-case persistence method(s) • Domain has been modeled prior to implementation details Friday, June 14, 13
  5. Overriding ActiveRecord Alternatively, taming the beast. • Save methods •

    Finder methods • Validations Friday, June 14, 13
  6. Mentioned References: Building an App with Corey Haines: Ep. 1

    http://www.cleancoders.com/codecast/bawch-episode-1/show Patterns of Enterprise Application Architecture By Martin Fowler http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420 The Revenge of Method Missing Paolo Perrotta http://www.confreaks.com/videos/1097-madisonruby2012-the-revenge-of-method_missing Friday, June 14, 13