A Basic Principle of Software Development

Dry Stand For - Don’t Repeat Yourself

The dry principle is about reducing the repetition of code, Less code, and hence shorter development time

Why DRY?

Sometimes, the programmer writes the same code or logic again and again. It becomes difficult to manage in the future. The DRY principle helps to reduce the code by avoiding repetition of code. Hence, your code becomes easy to read and can be managed in the future(helps in debugging too).

How to achieve DRY?

Divide your code and logic into smaller reusable units and use that code by calling it where you want.

Feel free to reach out to me if you need help with what is right for you, using this link.


comments powered by Disqus