Rule of Three — Three Strikes And You Refactor
Think twice before you remove duplicated code
Published in
5 min readMay 2, 2022
One of the most common misunderstandings in software development is the DRY principle — Don’t repeat yourself. It usually sounds straightforward: The DRY principle states that duplication and repetition in code that exists in two places and repeats the same knowledge and business logic should be avoided. In…