8. Object Calisthenics - Jeff Bay
• Use only one level of indentation per method
• Don’t use the else keyword
• Wrap all primitives and strings
• Use only one dot per line
• Don’t abbreviate
• Keep all entities small
• Don’t use any classes with more than two instance variables
• Use first-class collections
• Don’t use any getters/setters/properties
9. Object Calisthenics
• Use only one level of indentation per method
• Don’t use the else keyword
• Wrap all primitives and strings
• Use only one dot per line
• Don’t abbreviate
• Keep all entities small
• Don’t use any classes with more than two instance variables
• Use first-class collections
• Don’t use any getters/setters/properties
16. Please fill out surveys
Deliberate Practice
Alex Aitken
Aug 16 2012
Thank you
Editor's Notes
[3:30-3:32]\nAlex intro.\nJason intro.\nJason: Mention that post slides online. References are at the end of the slides.\n
[3:32-3:33]\n
[3:33-3:35]\nMalcolm Gladwell, in his book Outliers, has popularized the notion that ten thousands hours is mastery. That works out to 10 years if you're practicing 20 hours per week. It's not just putting in time that counts. It's doing specific activities with the intention to improve one's skill.\n
[3:35-3:40] Story of practicing 1 hour a week\n
[3:40-4:05] Explain fizzbuzz rules\nplay the game with the audience\nexplain what we are focusing on and what we are not focusing on.\n
[4:05-4:10] >= 20 people, split into two groups.\nWhat was different between FizzBuzz with and without Object Calisthenics?\nWhat did you notice?\n\n
[4:10-4:13] Object Calisthenics\n\n\n
[4:13-4:14] This is an exercise, these are not rules to apply to every piece of code you do.\n\nWe are not going to define all of these. I am going to define 1.\nThere are some good descriptions in the references.\n
[4:14-4:17]\n
[4:17-4:37] Object Calisthenics - Demo\n\n
[4:37-4:42] >= 20 people, split into two groups.\nWhat was different between FizzBuzz with and without Object Calisthenics?\nWhat did you notice?\n\n
[4:42-4:56] Close with participants writing down what they learned, what surprised them, and what they will do differently. - 10 min\nAsk participants to share. \n
[4:56-5:57] ClosingOne thing: You can start practicing immediately. With your team mates. And there’s little stopping you from starting now.\n
\n
\n
[4:42-4:56] Close with participants writing down what they learned, what surprised them, and what they will do differently. - 10 min\nAsk participants to share. \n