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

GET STARTED WITH COMPONENT-BASED RAILS APPLICAT...

shagemann
September 23, 2015

GET STARTED WITH COMPONENT-BASED RAILS APPLICATIONS! @ Rocky Mountain Ruby 2015

Same title - different content! This time co-presented with Jeff Taggart @jetaggart.

Component-based Rails helps you regain control over your sprawling Rails application. It helps you structure your new Rails application in a way that it will stay more manageable longer. It helps you think completely differently about writing applications - not just in Ruby and Rails!

This session will help you pass the initial hurdle of getting started with component-based Rails. While there is nothing really new, there is a lot that is just a little different. We will go over those differences so your start with component-based Rails is a smooth one.

shagemann

September 23, 2015
Tweet

More Decks by shagemann

Other Decks in Technology

Transcript

  1. Agenda 1. Who are you? And why components? 2. What

    are components? 3. The structure of your app 4. Real life example: The structure of P2Bi 5. The first refactor @shageman, @jetaggart
  2. Creating an application based on components creates constraints that will

    improve the overall maintainability of your app @shageman, @jetaggart
  3. Creating an application based on components creates conversations that will

    improve the overall maintainability of your app @shageman, @jetaggart
  4. For this example application, your imaginary client, who has limitless

    time and budget (unlike clients in the real world), wants you to develop a ticket-tracking application to track the company’s numerous projects. @shageman, @jetaggart https://github.com/rubysherpas/r4ia_examples
  5. Pros and Cons of persistence extraction • mechanical refactoring (i.e.,

    fast) • shows entanglement of model layer • works on every app • scriptable • creates a sample and pattern • It does (not yet) create a meaningful “domain component” @shageman, @jetaggart