Skip to content
GabineteTools for thinking

No. 0518Workflow and delivery

DRY (Don't Repeat Yourself)

Hunt and Thomas · 1999

Left, four cards with disparate blue copies, one worn red; right, cards with windows that frame a single central blue piece.

The table / Model card · No. 0518 · Workflow and delivery

DRY (Don't Repeat Yourself)

Keep each process step, rule or reference defined in one authoritative place and link to it, instead of copying it.

The essentials

What it is

What it solves

Why do copies of the same procedure or rule drift apart, so that one update leaves old versions in use?

When to use it

When policies or checklists are copied across departments, when onboarding documents contradict each other, or when a change in regulation must be reflected in many procedures.

Where it comes from

Named by Andy Hunt and Dave Thomas in The Pragmatic Programmer (1999), as a rule that every piece of knowledge should have a single authoritative representation in a system. Its use for business processes and documents is an informal extension by practitioners.

Andy Hunt and Dave Thomas · 1999

How it works

Every duplicated definition is a future inconsistency, because someone has to remember to change all copies. The principle assigns each rule or step one owner and one location, and everything else points to it. Updates then happen once and spread automatically. The trade-off is dependence on the central source and its accessibility.

You need

An inventory of documents and procedures, the owners of each, and a place to hold the central versions.

You get

A set of central process definitions with links from dependent documents and a named owner for each.

Case

Illustrative case

Fenix Retail's six stores each kept their own returns procedure in a binder. After a policy change, three stores still applied the old 14-day window. The operations manager listed all copies, wrote one returns procedure in the shared wiki with one owner, and replaced the binders with a link and a one-line summary. When the window changed to 30 days, one edit updated every store. Complaints about inconsistent returns dropped from about 20 to 3 per month. Store managers now receive a change notice with the wiki link each time the owner edits it.

A fictional company used to explain the model.

Caution

When to avoid it

  • When two things look similar but change for different reasons, since merging them forces awkward exceptions.
  • Also risky where teams must work offline or independently.

Common mistakes

  • Merging steps that only look alike.
  • Creating a central source nobody can find.
  • Leaving no owner so it goes stale.
  • Over-linking until readers must open five documents to do one task.

Known weaknesses

  • Business-process use is an analogy and not formalised
  • Creates dependence on one source and its owner
  • Over-merging causes false reuse
  • Linked documents are harder to read than self-contained ones

How to apply it in 5 steps

How to apply it

DRY (Don't Repeat Yourself)

5 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 5 steps
  1. Find duplicates

    Review documents and processes for repeated steps and rules.

  2. Choose a single source

    Create one authoritative definition and name its owner.

  3. Replace copies with links

    Point every dependent document to the central version.

  4. Make it findable

    Put the source where all users can reach it.

  5. Review periodically

    Check accuracy and that all references still point to it.

Which decisions it helps with

Decision profile

A tool to take action on processes and operations.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Other formatDoes not fit neatly into the available categories
Decision stage
Plan the work, roles and deadlines
What it applies to
Processes and operations
Discipline
Agile and software development

IIIResources required

  • TimeWeeks or months
  • PeopleSeveral teams
  • DataA few readily available facts
  • ExpertiseAnyone who has read a page of instructions
  • Time horizonOne to three years
  • ScopeThe whole organization
  • FrequencyOccasionally
The team’s own knowledge is enough

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstmixedAct now

IVUseful when

Applicable traits

  • How it supports actionClarify who does what
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Workflow and delivery

They organize and accelerate day-to-day delivery: Kanban, DevOps, development cycles, automation and work standards.

Membership: 36 % · also “Organisational transformation” (14 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Hunt, A. and Thomas, D. (1999). The Pragmatic Programmer: From Journeyman to Master. Addison-Wesley.Wikipedia's DRY page states Hunt and Thomas formulated the principle in this book (1999); ISBN-13 9780201616224 confirmed on isbnsearch.org (Addison-Wesley).View source: The Pragmatic Programmer: From Journeyman to Master (opens in a new tab) ↗

Critique

  1. Kapser, C. J. and Godfrey, M. W. (2008). "Cloning considered harmful" considered harmful: patterns of cloning in software. Empirical Software Engineering 13, 645-692.Objects to the blanket view that duplication is bad practice: finds cloning is often a principled engineering tool, and that up to 71% of clones in Apache and Gnumeric could be considered to have a positive impact on maintainability.View source: "Cloning considered harmful" considered harmful: patterns of cloning in software (opens in a new tab) ↗
  2. Metz, S. (2016). The Wrong Abstraction. sandimetz.com (blog; based on RailsConf 2014 talk).Argues that 'duplication is far cheaper than the wrong abstraction' and advises preferring duplication over the wrong abstraction, i.e. over-applying DRY has a cost.View source: The Wrong Abstraction (opens in a new tab) ↗

Practical guide

  1. contributors, W. (n.d.). Don't repeat yourself. Wikipedia.States the principle ('Every piece of knowledge must have a single, unambiguous, authoritative representation within a system'), attributes it to Andy Hunt and Dave Thomas in The Pragmatic Programmer, notes they apply it to schemas, test plans, build system and documentation, and describes the WET and AHA counter-positions.View source: Don't repeat yourself (opens in a new tab) ↗

Wikipedia article (opens in a new tab) ↗