|
|
|
|
|
by kqr
1197 days ago
|
|
To be fair, in your example it sounds like the repetition is very local and easily recognised for what it is. Not ideal, but hardly a poster child for when DRY is impactful. If the change was otherwise good, I would remark on the repetition as "here's how I would write it differently" and not "go back and fix it now". The first time someone changes four of the cases the same way but misses the fifth, though. That sounds like a good time to refactor. |
|