Skip to content

Glossary: Refactoring and Clean Code

rule of three

A rule of thumb to wait for the third copy of some code before sharing it. This avoids merging things too early into the wrong abstraction.

Where the book teaches it

Related terms

Wrong abstractionDRY (Don't Repeat Yourself)