Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Don’t Repeat Yourself (DRY)

Don’t repeat yourself, or DRY, is a principle of software development aimed at reducing repetition of software patterns.

The concept was coined in Andy Hunt and Dave Thomas’s book The Pragmatic Programmer, in 1999.

This principle is also known as Duplication Is Evil, or DIE. Its nemesis is WET. It means write everything twice.

Documentation

See Also