4 ms·
Would you go with a simple comment/tag to denote both piece of code are identical but not abstracted away on purpose ?
by agumonkey 5y ago
Would you go with a simple comment/tag to denote both piece of code are identical but not abstracted away on purpose ?
- djbusby 5y agoI do this // @note this code is duped in ../../some/other/file.code
- agumonkey 5y agoI need to write an emacs helper to duplicate and tag in one go.
- Cthulhu_ 5y agoSome IDE's and external tools have duplication detection; I mean it probably won't be enough for people to go 'if I fix it here, I should fix it there' if it applies to both locations, but still.