# When Repetition Becomes a Pattern: The Rule of Three

When the same solution turns up for the third time, each copy a little different, it's time to pull out its shared shape and give it a name; once is code, twice is a coincidence, and three times is a pattern worth naming, which is how every pattern in this course began.

![Cheat sheet: When Repetition Becomes a Pattern: The Rule of Three](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/9e04ab31516441088f28d3c69b7ae090.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Design Pattern, DRY Principle, OOP, Rule of Three, software-development
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-rule-of-three-cheat-sheet
