WET - Write Everything Twice
Updated 2026-07-30
Summary
The inverse principle to DRY (Don't Repeat Yourself).
Definition
The inverse principle to DRY (Don't Repeat Yourself). When you need to reuse code for the first time, don't rush to abstract (DRY), but allow yourself to write it twice (WET). Only refactor when it appears a third time. Scaffold use: Avoid premature abstraction. In management and process design, premature standardization often leads to rigidity. Allowing a certain degree of redundancy and chaos until the pattern is fully clear is a good remedy against 'over-optimization'.
Introduction
How to use
Avoid premature abstraction. In management and process design, premature standardization often leads to rigidity. Allowing a certain degree of redundancy and chaos until the pattern is fully clear is a good remedy against 'over-optimization'.
Mechanism
The inverse of DRY—on first reuse, allow writing it twice (WET), and only abstract and refactor when it appears a third time. Avoid premature abstraction: abstracting when the pattern is not clear is error-prone and rigid; allow moderate redundancy until the pattern stabilizes.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- Two similar functions are written separately at first, and a common component is extracted on the third occurrence, avoiding premature abstraction.
Common pitfalls
- Going to infinite WET without refactoring (technical debt); or over-abstracting on the first occurrence (wrong pattern).
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Don't_repeat_yourselfverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS