ObjectDojo is a utility to improve your Object oriented programming skills using rules described in the article "Object Calisthenics" by JeffBay:
www.xpteam.com/jeff/writings/objectcalisthenics.rtf
The Rules
- One level of indentation per method
- Don’t use the ELSE keyword
- Wrap all primitives and Strings
- First class collections
- One dot per line
- Don’t abbreviate
- Keep all entities small
- No classes with more than two instance variables
- No getters/setters/properties
Usage
Run the command line utility dojo in your current project folder.
myapp$ dojo
Configure
The rules can be configured by passing command line options. To get the full list of command line options
$ dojo -h
Supported languages
The current version supports only Ruby. Support for other languages like Java, C# and Python will be added in the future.