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

Spinning out DeskBeers

rodreegez
January 28, 2016

Spinning out DeskBeers

A talk given at Monki Gras 2016

rodreegez

January 28, 2016
Tweet

More Decks by rodreegez

Other Decks in Business

Transcript

  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.