Don't Repeat Yourself (DRY)

Supports Pillars:

Technical excellence

Dependencies on Other Skills:

Refactoring

Single Responsibility Principle (SRP)

Definition:

Every piece of knowledge must have a single unambiguous, authoritative representation within a system.

Triggers:

We apply the DRY principle to:

  • Remove multiple representations of information.

  • Remove unintended duplication from our designs.

  • Remove "copy and paste" code.

  • Foster code reuse.

Forces:

?

Organizational Support of this Skill:

?

Resources:

The Pragmatic Programmer / Hunt & Thomas