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.

By

Updated

Cheat sheet: When Repetition Becomes a Pattern: The Rule of Three
Category
Data Structures
Level
Journeyman
Tags
Design Pattern, DRY Principle, OOP, Rule of Three, software-development