XP
The Four Commandments
- Pass all tests
- Clear, Expressive & consistent
- Duplicate no behavior or configuration
- Minimal methods, classes & modules
Simple code:
- Runs all the tests.
- Expresses every idea that we need to express.
- Says everything OnceAndOnlyOnce.
- Has no superfluous parts.
Wiki pages for each of the above, respectively:
- UnitTestsTellYouWhenYoureDone, ...
- SelfDocumentingCode,...
- OnceAndOnlyOnce, DontRepeatYourself, RedundancyIsInertia...
- YouArentGonnaNeedIt, MinimumNumberOfClassesAndMethods...
Alternative list:
- Runs all the tests.
- Maximizes Cohesion
- Minimizes Coupling
- Says everything OnceAndOnlyOnce.