As athlethes practice with higher constraints to excell in a competition, we too can practice our design skills by adhereing to seemingly extreme rules.
We will follow Jeff Bay's 9 rules of 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
After a short introduction, participant will pair program in a object oriented language of their choice for two iterations.
Depending on their prior experience, the rules can be tackled step by step.
In between, we will have time to share and discuss our findings.