Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.15 KB

File metadata and controls

30 lines (23 loc) · 1.15 KB

XP

Régles de simplicité

A consulter ici

The Four Commandments

  • Pass all tests
  • Clear, Expressive & consistent
  • Duplicate no behavior or configuration
  • Minimal methods, classes & modules

Simple code:

  1. Runs all the tests.
  2. Expresses every idea that we need to express.
  3. Says everything OnceAndOnlyOnce.
  4. Has no superfluous parts.

Wiki pages for each of the above, respectively:

  1. UnitTestsTellYouWhenYoureDone, ...
  2. SelfDocumentingCode,...
  3. OnceAndOnlyOnce, DontRepeatYourself, RedundancyIsInertia...
  4. YouArentGonnaNeedIt, MinimumNumberOfClassesAndMethods...

Alternative list:

  1. Runs all the tests.
  2. Maximizes Cohesion
  3. Minimizes Coupling
  4. Says everything OnceAndOnlyOnce.