DRY — Don’t repeat yourself

By Karol Bocian | February 24, 2020

The DRY principle recommends not to repeat the same solution.


This applies to repeat this code, how to solve it, and what to do. Repetitive actions can be automated, repetitive code can be extracted and referenced, repetitive patterns can be generalized. The advantage of using the DRY principle is that you avoid mistakes and save time:

  • The error in the code copied in many places needs to be corrected everywhere.
  • When performing a task manually, it’s easy to make a mistake. The automatic script will not make a mistake with subsequent performances and does the work for us.

All posts from mini project: Learn SOLID and OOP principles:


Main image


2 thoughts on “DRY — Don’t repeat yourself

  1. Shanda Ganis

    Remarkable! Its truly remarkable piece of writing, I have got much clear idea on the topic of from this paragraph.


Leave a Reply

Your email address will not be published. Required fields are marked *