▲ | rkomorn 9 days ago | |||||||
The reverse of that is people introducing bugs because code that wasn't DRY enough was only changed in some of the places that needed to be changed instead of all the places. To me, it's the things that are specifically intended to behave the same should be kept DRY. | ||||||||
▲ | pkolaczk 9 days ago | parent | next [-] | |||||||
An obvious example of that is defining named constants and referring them by name instead of repeating the same value in N places. This is also DRY and good kind of DRY. | ||||||||
| ||||||||
▲ | sroerick 9 days ago | parent | prev [-] | |||||||
This is the correct take - if you're getting this type of bug, it's now past time for DRY |