Skip to content

Glossary: Software Design Patterns

Rule of three

Write code the first time, notice the repeat the second, and extract the shared part the third time. By then you know what really varies.

Where the book teaches it

Related terms

Premature abstractionYAGNI