Commonplace Book

DRY (Don't Repeat Yourself) Principle

Jun 11, 2025

DRY (Don’t Repeat Yourself)

Applying the DRY principle is pretty simple. If you find yourself writing the same code more than once, refactor it into an external function or class.