Design Principles

DRY Principle

Don't Repeat Yourself — every piece of knowledge should have a single, authoritative representation.

design abstraction refactoring

The DRY principle, formulated by Andy Hunt and Dave Thomas in The Pragmatic Programmer, states that duplication in logic should be eliminated via abstraction and duplication in process should be eliminated via automation.

Caveats

Enforce this law (and 100+ more) in your AI coding agents with DevLaws.

Open DevLaws All laws →