Sandi Metz: Rules

04370f40413ad7b5d14137511c50b98b?s=47 Triangle Ruby
January 14, 2014
170

Sandi Metz: Rules

04370f40413ad7b5d14137511c50b98b?s=128

Triangle Ruby

January 14, 2014
Tweet

Transcript

  1. @sandimetz Jan 2014 Sandi Metz Rules Tuesday, January 14, 14

  2. @sandimetz Jan 2014 taboos Tuesday, January 14, 14

  3. @sandimetz Jan 2014 Tuesday, January 14, 14

  4. @sandimetz Jan 2014 laws Tuesday, January 14, 14

  5. @sandimetz Jan 2014 Tuesday, January 14, 14

  6. @sandimetz Jan 2014 norms Tuesday, January 14, 14

  7. @sandimetz Jan 2014 Tuesday, January 14, 14

  8. @sandimetz Jan 2014 obedience? Tuesday, January 14, 14

  9. @sandimetz Jan 2014 1 self interest Tuesday, January 14, 14

  10. @sandimetz Jan 2014 Tuesday, January 14, 14

  11. @sandimetz Jan 2014 2 identity status Tuesday, January 14, 14

  12. @sandimetz Jan 2014 Tuesday, January 14, 14

  13. @sandimetz Jan 2014 Tuesday, January 14, 14

  14. @sandimetz Jan 2014 Tuesday, January 14, 14

  15. @sandimetz Jan 2014 Tuesday, January 14, 14

  16. @sandimetz Jan 2014 Tuesday, January 14, 14

  17. @sandimetz Jan 2014 3 authority Tuesday, January 14, 14

  18. @sandimetz Jan 2014 Tuesday, January 14, 14

  19. @sandimetz Jan 2014 Tuesday, January 14, 14

  20. @sandimetz Jan 2014 Tuesday, January 14, 14

  21. @sandimetz Jan 2014 4 order Tuesday, January 14, 14

  22. @sandimetz Jan 2014 Tuesday, January 14, 14

  23. @sandimetz Jan 2014 Tuesday, January 14, 14

  24. @sandimetz Jan 2014 Tuesday, January 14, 14

  25. @sandimetz Jan 2014 5 social sanctions Tuesday, January 14, 14

  26. @sandimetz Jan 2014 Tuesday, January 14, 14

  27. @sandimetz Jan 2014 6 inherent sanctions Tuesday, January 14, 14

  28. @sandimetz Jan 2014 Tuesday, January 14, 14

  29. @sandimetz Jan 2014 7 ignorance Tuesday, January 14, 14

  30. @sandimetz Jan 2014 Tuesday, January 14, 14

  31. @sandimetz Jan 2014 8 habit Tuesday, January 14, 14

  32. @sandimetz Jan 2014 Tuesday, January 14, 14

  33. @sandimetz Jan 2014 Tuesday, January 14, 14

  34. @sandimetz Jan 2014 Tuesday, January 14, 14

  35. @sandimetz Jan 2014 taboos laws norms Tuesday, January 14, 14

  36. @sandimetz Jan 2014 self interest identity/status authority order social sanctions

    inherent sanctions ignorance habit Tuesday, January 14, 14
  37. @sandimetz Jan 2014 5 Rules Tuesday, January 14, 14

  38. @sandimetz Jan 2014 5 Constraints Tuesday, January 14, 14

  39. @sandimetz Jan 2014 100 lines per class Tuesday, January 14,

    14
  40. @sandimetz Jan 2014 5 lines per method Tuesday, January 14,

    14
  41. @sandimetz Jan 2014 4 parameters per method Tuesday, January 14,

    14
  42. @sandimetz Jan 2014 1 instance var per rails view Tuesday,

    January 14, 14
  43. @sandimetz Jan 2014 2 class names per rails controller action

    Tuesday, January 14, 14
  44. @sandimetz Jan 2014 2 class names per rails controller action

    (business, presenter) Tuesday, January 14, 14
  45. @sandimetz Jan 2014 Tuesday, January 14, 14

  46. @sandimetz Jan 2014 Dispensation? Tuesday, January 14, 14

  47. @sandimetz Jan 2014 Dispensation? Convince your pair!* sdf *Rule #6

    Tuesday, January 14, 14
  48. @sandimetz Jan 2014 100 lines per class    5 lines

    per method    4 params per method    1 ivar per view    2 class names per controller action No More Than Tuesday, January 14, 14
  49. @sandimetz Jan 2014 consequences Tuesday, January 14, 14

  50. @sandimetz Jan 2014 bias towards small objects Tuesday, January 14,

    14
  51. @sandimetz Jan 2014 bias towards POROs Tuesday, January 14, 14

  52. @sandimetz Jan 2014 bias away from dependencies Tuesday, January 14,

    14
  53. @sandimetz Jan 2014 rule qualities Tuesday, January 14, 14

  54. @sandimetz Jan 2014 arbitrary cut-offs Tuesday, January 14, 14

  55. @sandimetz Jan 2014 consistent goals Tuesday, January 14, 14

  56. @sandimetz Jan 2014 tension Tuesday, January 14, 14

  57. @sandimetz Jan 2014 objects Tuesday, January 14, 14

  58. @sandimetz Jan 2014 objects vs Tuesday, January 14, 14

  59. @sandimetz Jan 2014 objects vs procedures Tuesday, January 14, 14

  60. @sandimetz Jan 2014 objects vs procedures Tuesday, January 14, 14

  61. @sandimetz Jan 2014 objects vs procedures Tuesday, January 14, 14

  62. @sandimetz Jan 2014 perspective Tuesday, January 14, 14

  63. @sandimetz Jan 2014 Rails app Tuesday, January 14, 14

  64. @sandimetz Jan 2014 Rails app vs Tuesday, January 14, 14

  65. @sandimetz Jan 2014 Rails app vs application that uses Rails

    Tuesday, January 14, 14
  66. @sandimetz Jan 2014 why follow rules? Tuesday, January 14, 14

  67. @sandimetz Jan 2014 self interest Tuesday, January 14, 14

  68. @sandimetz Jan 2014 signal others? Tuesday, January 14, 14

  69. @sandimetz Jan 2014 research Tuesday, January 14, 14

  70. @sandimetz Jan 2014 Erik O. Kimbrough Alexander Vostroknutov Tuesday, January

    14, 14
  71. @sandimetz Jan 2014 Using Rules to Screen for Cooperative Types:

    Rule-Following and Restraint in Common Pool Resource Systems Tuesday, January 14, 14
  72. @sandimetz Jan 2014 Using Rules to Screen for Cooperative Types:

    Rule-Following and Restraint in Common Pool Resource Systems Tuesday, January 14, 14
  73. @sandimetz Jan 2014 study Tuesday, January 14, 14

  74. @sandimetz Jan 2014 study part 1 Tuesday, January 14, 14

  75. @sandimetz Jan 2014 identify followers vs breakers Tuesday, January 14,

    14
  76. @sandimetz Jan 2014 Tuesday, January 14, 14

  77. @sandimetz Jan 2014 Task: Walk---------> Tuesday, January 14, 14

  78. @sandimetz Jan 2014 Task: Walk---------> Tuesday, January 14, 14

  79. @sandimetz Jan 2014 Task: Walk---------> Tuesday, January 14, 14

  80. @sandimetz Jan 2014 given 8€ Tuesday, January 14, 14

  81. @sandimetz Jan 2014 lose .08€ per second Tuesday, January 14,

    14
  82. @sandimetz Jan 2014 red light = 5 seconds Tuesday, January

    14, 14
  83. @sandimetz Jan 2014 “Wait for green light.” Tuesday, January 14,

    14
  84. @sandimetz Jan 2014 some folks Tuesday, January 14, 14

  85. @sandimetz Jan 2014 Tuesday, January 14, 14

  86. @sandimetz Jan 2014 Tuesday, January 14, 14

  87. @sandimetz Jan 2014 Tuesday, January 14, 14

  88. @sandimetz Jan 2014 Tuesday, January 14, 14

  89. @sandimetz Jan 2014 Tuesday, January 14, 14

  90. @sandimetz Jan 2014 Tuesday, January 14, 14

  91. @sandimetz Jan 2014 Tuesday, January 14, 14

  92. @sandimetz Jan 2014 Tuesday, January 14, 14

  93. @sandimetz Jan 2014 etc... Tuesday, January 14, 14

  94. @sandimetz Jan 2014 other folks Tuesday, January 14, 14

  95. @sandimetz Jan 2014 Tuesday, January 14, 14

  96. @sandimetz Jan 2014 Tuesday, January 14, 14

  97. @sandimetz Jan 2014 study part 2 Tuesday, January 14, 14

  98. @sandimetz Jan 2014 separate into like groups Tuesday, January 14,

    14
  99. @sandimetz Jan 2014 play cooperative game Tuesday, January 14, 14

  100. @sandimetz Jan 2014 Tuesday, January 14, 14

  101. @sandimetz Jan 2014  4 players Tuesday, January 14, 14

  102. @sandimetz Jan 2014  4 players 10 rounds Tuesday, January 14,

    14
  103. @sandimetz Jan 2014  4 players 10 rounds draw tokens Tuesday,

    January 14, 14
  104. @sandimetz Jan 2014 Tuesday, January 14, 14

  105. @sandimetz Jan 2014 Tuesday, January 14, 14

  106. @sandimetz Jan 2014 ∞ Tuesday, January 14, 14

  107. @sandimetz Jan 2014 1 1 1 1 ∞ Tuesday, January

    14, 14
  108. @sandimetz Jan 2014 1 1 1 1 ∞ Tuesday, January

    14, 14
  109. @sandimetz Jan 2014 1 1 1 1 360 ∞ Tuesday,

    January 14, 14
  110. @sandimetz Jan 2014 1 1 1 1 360 2 ∞

    Tuesday, January 14, 14
  111. @sandimetz Jan 2014 each player draws 60 tokens per round

    Tuesday, January 14, 14
  112. @sandimetz Jan 2014 Round 1 Tuesday, January 14, 14

  113. @sandimetz Jan 2014 Round 1 120 Tuesday, January 14, 14

  114. @sandimetz Jan 2014 120 Regeneration Tuesday, January 14, 14

  115. @sandimetz Jan 2014 120 * .5 Regeneration Tuesday, January 14,

    14
  116. @sandimetz Jan 2014 180 Regeneration Tuesday, January 14, 14

  117. @sandimetz Jan 2014 Regeneration Tuesday, January 14, 14

  118. @sandimetz Jan 2014 Regeneration Tuesday, January 14, 14

  119. @sandimetz Jan 2014 30 Regeneration Tuesday, January 14, 14

  120. @sandimetz Jan 2014 30 Regeneration Tuesday, January 14, 14

  121. @sandimetz Jan 2014 Round 2 180 remain?? Tuesday, January 14,

    14
  122. @sandimetz Jan 2014 Round 2 180 - 30 = 150

    Tuesday, January 14, 14
  123. @sandimetz Jan 2014 Round 2 180 - 30 = 150

    150 / 4 = 37.5 Tuesday, January 14, 14
  124. @sandimetz Jan 2014 Round 2 37! Tuesday, January 14, 14

  125. @sandimetz Jan 2014 180 Round 2 1 1 1 1

    2 Tuesday, January 14, 14
  126. @sandimetz Jan 2014 Round 2 Tuesday, January 14, 14

  127. @sandimetz Jan 2014 Round 2 32 Tuesday, January 14, 14

  128. @sandimetz Jan 2014 32 Regeneration Tuesday, January 14, 14

  129. @sandimetz Jan 2014 32 * .5 Regeneration Tuesday, January 14,

    14
  130. @sandimetz Jan 2014 48 Regeneration Tuesday, January 14, 14

  131. @sandimetz Jan 2014 (current - 30) / 4 Tuesday, January

    14, 14
  132. @sandimetz Jan 2014 Round 3 4 Tuesday, January 14, 14

  133. @sandimetz Jan 2014 results Tuesday, January 14, 14

  134. @sandimetz Jan 2014 followers Tuesday, January 14, 14

  135. @sandimetz Jan 2014 followers cooperate for mutual long term gain

    Tuesday, January 14, 14
  136. @sandimetz Jan 2014 breakers Tuesday, January 14, 14

  137. @sandimetz Jan 2014 breakers throw team under bus Tuesday, January

    14, 14
  138. @sandimetz Jan 2014 60! 60! 60! 60! Tuesday, January 14,

    14
  139. @sandimetz Jan 2014 mixed groups Tuesday, January 14, 14

  140. @sandimetz Jan 2014 mixed groups behave like breaker groups Tuesday,

    January 14, 14
  141. @sandimetz Jan 2014 30! 30! 30! 50! Tuesday, January 14,

    14
  142. @sandimetz Jan 2014 50! Tuesday, January 14, 14

  143. @sandimetz Jan 2014 60! 60! 60! 50! Tuesday, January 14,

    14
  144. @sandimetz Jan 2014 consequences (reprise) Tuesday, January 14, 14

  145. @sandimetz Jan 2014 bias towards small objects Tuesday, January 14,

    14
  146. @sandimetz Jan 2014 bias towards POROs Tuesday, January 14, 14

  147. @sandimetz Jan 2014 bias away from dependencies Tuesday, January 14,

    14
  148. @sandimetz Jan 2014 bias towards collaboration Tuesday, January 14, 14

  149. @sandimetz Jan 2014 bias towards collaboration Tuesday, January 14, 14

  150. @sandimetz Jan 2014 self interest identity/status authority order social sanctions

    inherent sanctions ignorance habit Tuesday, January 14, 14
  151. @sandimetz Jan 2014 9 signal cooperation Tuesday, January 14, 14

  152. @sandimetz Jan 2014 rules matter Tuesday, January 14, 14

  153. @sandimetz Jan 2014 write better software Tuesday, January 14, 14

  154. @sandimetz Jan 2014 find trustworthy humans Tuesday, January 14, 14

  155. @sandimetz Jan 2014 Thanks Tuesday, January 14, 14

  156. @sandimetz Jan 2014 Credits http://www.flickr.com/photos/paul-w-locke/1792803096/ Cannibal Pumpkins http://www.flickr.com/photos/john_pp/3155064087/ 100K Speed

    limit sign on cliff with hiker http://www.flickr.com/photos/paphio/272769602/ Cops cheek kissing http://www.flickr.com/photos/pixel8-rcrd/5791227393/ kid winning contest http://www.flickr.com/photos/fluffy_steve/2537798898/ two goths http://www.flickr.com/photos/bobjagendorf/3064198102/ wall street shuffle http://www.flickr.com/photos/pdsphil/278060802/ rubyconf room 2006 http://www.flickr.com/photos/danicuki/6319528505/ konstanin and jose http://www.flickr.com/photos/lucasrenan/5142409437/ 3 ruby nerds, 10/26/2010 http://www.flickr.com/photos/85529750@N00/5200928365/ pope barcelona http://www.flickr.com/photos/nathaninsandiego/3783772122/ umpire http://www.flickr.com/photos/rrrodrigo/4664885112/ matz http://www.flickr.com/photos/85529750@N00/5200928365/ pope barcelona http://www.flickr.com/photos/nathaninsandiego/3783772122/ umpire http://www.flickr.com/photos/rrrodrigo/4664885112/ matz http://www.flickr.com/photos/z_wenjie/7820625836 pansies http://www.flickr.com/photos/haikugirl/4813516858/ trees http://www.flickr.com/photos/emsef/2407145479/ bus stop queue http://www.flickr.com/photos/theretrographer/9228096325/ rows of jail cells brightly lit Tuesday, January 14, 14
  157. @sandimetz Jan 2014 Credits http://www.flickr.com/photos/jakebouma/102485568/ Car cliff warning http://www.flickr.com/photos/burge009/5215723703/ free

    tatoos http://www.flickr.com/photos/singularitysummit/6261754179/ one swarming robot http://www.flickr.com/photos/singularitysummit/6262287656/ swarming robots swarming http://www.flickr.com/photos/osakasteve/17178084/ swarming robots in a line http://en.wikipedia.org/wiki/Social_rule_system_theory Kinbrough, Erik O., Vosroknutov, Alexander (2012 draft), Using Rules to Screen for Cooperative Types: Rule-Following and Restraint in Common Pool Resource Systems Tuesday, January 14, 14
  158. http://poodr.com Sandi Metz @sandimetz @sandimetz Jan 2014 Tuesday, January 14,

    14
  159. @sandimetz Jan 2014 3-day public OOP class, Durham March 12-14,

    2014 http://sandimetz.com Tuesday, January 14, 14
  160. @sandimetz Jan 2014 3-day public OOP class, Durham March 12-14,

    2014 http://sandimetz.com * triangle.rb discount * http://bit.ly/mar2014_99bottles Tuesday, January 14, 14
  161. @sandimetz Jan 2014 Questions? Tuesday, January 14, 14

  162. http://poodr.com Sandi Metz @sandimetz @sandimetz Jan 2014 Tuesday, January 14,

    14