Calisthenics
I didn’t know about object calisthenics. They are a set of rules to help develop better:
- 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
Some of them are a must, with some others I have some doubts. But the point 2 is so intriguing I have to test it.
First published here