Skip to content

Don’t Repeat Yourself (DRY)

Mehmet Özkaya edited this page Mar 25, 2019 · 1 revision

In the software we develop, the solutions we create as a solution must be one in the software. If we cannot prevent this, for a problem, more than one version of the same solution will find itself in the code. It develops, develops, grows and makes the code more difficult to maintain. The fact that the same validation is done with a different string operation leads to inconsistency in the software. When you write code, it is best to re-use the solution if you think that it is similar to a similar solution before. To implement the DRY principle, it will be encapsulate common solutions into unique places in your code.

Clone this wiki locally