Spinning out DeskBeers

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
rodreegez
January 28, 2016

Spinning out DeskBeers

A talk given at Monki Gras 2016

rodreegez

January 28, 2016

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

71 slides
  1. “FOR EACH DESIRED CHANGE, MAKE THE CHANGE EASY (WARNING: THIS

    MAY BE HARD), THEN MAKE THE EASY CHANGE” - @KENTBECK
  2. potential_boxes = (boxes_in_stock - customer_history) chosen = potential_boxes.reject do |c|

    c.quantity < @order.box_count end.first if chosen.present? @order.update_attribute(:box, chosen) chosen.decrement_quantity(@order.box_count) end
  3. IN ORDER TO “MAKE THE CHANGE EASY” WE HAD TO

    REALLY UNDERSTAND THE PROBLEM.

More Decks by rodreegez

Other Decks in Business