DRY Principle
noun
say it: “DRY PRIN-sih-pul” /draɪ ˈprɪnsɪpəl/
Don't Repeat Yourself: keep each piece of logic or knowledge in one place in your code.
What is DRY Principle?
DRY ("Don't Repeat Yourself") means each piece of knowledge should live in one place. If the tax rate appears in ten files, one day someone will update only nine.
In a sentence
- “Following the DRY principle, I moved the repeated tax math into one method.”
Level: Freelancer · More OOP terms at this level
Updated