✏️ Explanatory Question

What is the DRY principle, and why is it important?

👁 21 Views
📘 Detailed Answer
🟡 Medium
💡

Answer with Explanation

DRY (Don’t Repeat Yourself) avoids duplicate logic.
Violating DRY leads to:

  • Multiple bug fixes

  • Inconsistent behavior

  • Increased testing effort