Object Pilates outlines 9 completely arbitrary and hopelessly unrealistic rules to apply when performing the exercise:
- One primitive parameter per method.
- Don't use the subtract operator.
- Wrap all increment operations in static methods.
- Singly-linked lists.
- One underscore per file.
- Don't loop.
- Keep all solutions less than 529 lines.
- No methods with more than two callers.
- No
foreach
statements.
Also see the 9 Rules of Object Calithenics.