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

Live with Rails

Live with Rails

My life with Rails and how I avoid it.

Oursky Limited

April 09, 2013
Tweet

More Decks by Oursky Limited

Other Decks in Programming

Transcript

  1. Fact Rails is fast on creating MVP Rails is fast

    on creating Restful API Rails has many stackoverflow articles. Tuesday, 9 April, 13
  2. Getting big and getting away Rails is slow Test is

    Rails is stupidly slow EdwinKwok says Rails is Architecture, not Entity: https://speakerdeck.com/oursky/ clean-code?slide=50 Tuesday, 9 April, 13
  3. Requirement Both Project and User have quota Project may have

    owner If a project has owner, ignore project quota If a project owner quota exceed, consider project quota. User can upgrade his quota Tuesday, 9 April, 13
  4. No Time! I really need test case when it about

    $money$ I really need test case when I follow up fat AR. Tuesday, 9 April, 13
  5. Introduce Quota Project Quota & User Quota is for storage

    only All logic belongs to Quota Tuesday, 9 April, 13
  6. Quota is not AR It test against its rspec, it

    is fast. One place to edit Tuesday, 9 April, 13
  7. Architecture matters Around 5 ticket about resource protection against expire/archive/non-owner

    will become trivial to fix after introducing Quota. Rails architecture is just a guideline. Tuesday, 9 April, 13