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

Active Record Model Dependencies

shagemann
October 22, 2013

Active Record Model Dependencies

How about you try not to let all those Active Record dependencies turn your application into a big ball of mud: never allow cyclic Active Record dependencies!!

shagemann

October 22, 2013
Tweet

More Decks by shagemann

Other Decks in Technology

Transcript

  1. Active Record
    Model Dependencies
    Stephan Hagemann

    View full-size slide

  2. Lots of Architecture

    View full-size slide

  3. https://speakerdeck.com/shagemann/wrangling-large-ruby-codebases

    View full-size slide

  4. https://speakerdeck.com/benjaminleesmith/how-i-architected-my-big-rails-app-for-success-rmr-2013

    View full-size slide

  5. Little bit of Architecture

    View full-size slide

  6. What does that lead to?

    View full-size slide

  7. Bugs
    Unclear
    responsibilities MRP not SRP
    Complex object
    creation
    Slow test suites

    View full-size slide

  8. Bad Software

    View full-size slide

  9. Never go in both directions

    View full-size slide

  10. Agile Web dev with rails

    View full-size slide

  11. No dependencies - no loose ends

    View full-size slide

  12. Thanks!
    Boulder

    View full-size slide