|
|
|
|
|
by nighthawk454
1197 days ago
|
|
I agree. The big gotcha with DRY is what counts a duplicate. To me it's duplicate _requirements_ not just code that happens to look similar at the moment. I phrase it as "duplication is a tool". Which is to say if something is actually definitely for sure the same requirement, you can de-duplicate it to have the compiler/tooling enforce and uphold that design constraint. This is good! Many "duplicates" are really only similar, temporarily, and by coincidence. In those cases, it's not really "duplication" and keeping it separate is almost certainly a better choice. |
|