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

Points of View

Points of View

at Object Design Rough Talks #1

https://gum.co/jspsc

Sho Kusano

April 25, 2014
Tweet

More Decks by Sho Kusano

Other Decks in Programming

Transcript

  1. VS

  2. Duck Pigeon If it walks like a *** and flies

    like a ***, it must be a ***
  3. If it be born like a *** and dies like

    a ***, it must be a ***
  4. Let’s seek just the right border Coo Coo Coo Coo

    Flies Walks Eats Runs Dies Be Born Pigeon
  5. # app/blue_prints/staff_context/staff_user.rb module StaffContext::StaffUser extend BluePrint::Behavior ! def user_name; "staff";

    end end ! # app/models/user.rb class User < ActiveRecord::Base def user_name; "#{name} san"; end end ! user = User.new(name: "Magnet") StaffContext.deactivate! user.user_name # => "Magnet san" StaffContext.activate! user.user_name # => "staff" Interaction