+ 7

Do you know DRY in programming?

DRY=Don't repeat yourself. Sometimes when we write our code we repeat many lines in code. duplication stems from Copy Paste Programming or poor understanding of how to apply abstraction, it decreases the quality of the code.we can make our programme very cleaner and faster by decrease the repetition in our programming.If unnecessary lines repeat in your code.Duplication in process is also waste if it can be automated.  Manual testing, manual build and integration processes, etc. So Never repeat yourself.

22nd Mar 2018, 3:10 AM
Maninder $ingh
Maninder $ingh - avatar
1 Answer
i agree with you,i had a code with 400 lines and when i learn functions it decreased to 150 lines.DRY is very important rule for every programmer.
2nd Mar 2023, 8:32 AM
Giorgos Rekatas
Giorgos Rekatas - avatar