Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1429

WET - Write Everything Twice

WET - Write Everything Twice
BusinessHigh supportManagement
Included
account_tree

Updated 2026-07-30

Loading revision record…

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'.

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Don't_repeat_yourselfZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS