Skip to content

Instantly share code, notes, and snippets.

@sandromancuso
Created December 8, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandromancuso/4240549 to your computer and use it in GitHub Desktop.
Save sandromancuso/4240549 to your computer and use it in GitHub Desktop.
Object Calisthenics Rules
The Rules
1. One level of indentation per method
2. Don’t use the ELSE keyword
3. Wrap all primitives and Strings
4. First class collections
5. One dot per line
6. Don’t abbreviate
7. Keep all entities small (50 lines)
8. No classes with more than two instance variables
9. No getters/setters/properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment