DRY – Don’t Repeat Yourself

Don't Repeat Yourself is principle helping to avoid repetition of the same information (same code produced multiple times).
Read more
Article

Don’t Repeat Yourself (DRY)


  • Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
  • Don’t Repeat Yourself is software development principle helping to avoid repetition of the same information (same code produced multiple times). Having the same code in multiple places makes maintainability much harder, as the changes need to be done in all occurrences.
  • Achieving DRY can be done by dividing code into smaller pieces of functionality, which can be reused easily.
  • DRY violations are called WET (Write Everything Twice/ We Enjoy Typing).

DRY usage exmaples

Similar posters

The prime directive of agile software development
The prime directive of agile software development Acronymat poster: The prime directive of agile software development - Never be blocked, the system must work all the time.
AIDAOR
AIDAOR The AIDAOR is a hierarchical model, where a persona moves through a series of cognitive steps before and after making a purchase decision.
Little's law
Little's law Little’s Law is a theorem for queuing systems. It determines the average number of items in a stationary queuing system
User Story Creation
User Story Creation Creating a User Story is a continuous process based on the 3Cs phases, supported by INVEST, 5Ws, and the Definition of Done.
Radical Candor
Radical Candor Radical Candor is a framework describing four different behaviors. In order to become Radically Candid you need to understand all four types.
GSD / Get Stuff Done Whee
GSD / Get Stuff Done Whee Get Stuff Done Wheel is a framework for aligning and guiding the work of a team. It allows teams to deliver remarkable results more quickly
AIDA Model
AIDA Model The AIDA model is a model, where a persona moves through a series of steps to make a purchase decision, used in marketing, sales, planning...
STEEPLED
STEEPLED STEEPLED - Social, Technological, Economical, Environmental, Political, Legal, Ethical and additional compared to STEEPLE is Demographic.
BLUF - Bottom Line Up Front
BLUF - Bottom Line Up Front BLUF is a framework for declaring the purpose of the message and the action required. It should provide the most important information.
Transactional Analysis
Transactional Analysis Transactional Analysis is a psychoanalytic theory and method of therapy. A personality is made up of three ego states: Parent, Adult, Child.