What does DRY mean?
DRY stands for Don't Repeat Yourself.
Principle Definition
DRY stands for 'Don't Repeat Yourself' and is a software development principle that emphasizes reducing repetitive patterns and duplicated code in favor of modular and referable code.
Origin
Coined by Andy Hunt and Dave Thomas in 'The Pragmatic Programmer', DRY aims to ensure that each piece of knowledge has a single, unambiguous representation within a system.
Importance
Writing DRY code is essential for maintainability, scalability, and to avoid the opposite, WET code ('Write Everything Twice').
Rule of Three
A good general rule for DRY code is the 'Rule of Three', which suggests abstracting code into a reusable unit the third time a certain pattern is encountered.
¿Quieres saber más?
Si te interesa saber más acerca de DRY, hablemos. Me encanta compartir ideas y ayudar a equipos con estos temas. ¡Te leo!
What are the SOLID principles?
The SOLID principles were introduced by Robert C. Martin, also known as Unc...
What is Test Driven Development (TDD)?
Test-Driven Development (TDD) is a programming approach that emphasizes wri...
What is a Pull Request (PR)?
A Pull Request (PR) — also called a Merge Request (MR) in GitLab — is a for...
What is a User Story Map?
User Story Map (USM), or User Story Mapping, is a technique that organizes...
What is Testing?
Testing, or test, is a procedure conducted to verify and validate the funct...