DRY — Don’t repeat yourself

By | 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:

Sources

Bestseller dnia w księgarni Złote Myśli

Main image

Materials

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.

    Reply

Leave a Reply

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