5 ms·
I am also quite careful deduplicating code. Most of the time it is correct and good for code quality, but quite a few times the duplicated code was just seeming
by chupa-chups 7y ago
I am also quite careful deduplicating code. Most of the time it is correct and good for code quality, but quite a few times the duplicated code was just seeming to be duplicated (i.e. the code was (almost) the same, but not the reason for the code).
This led a few times to bugs, since someone changed the central, de-duplicated method correctly without thinking about the "other" use case unknown to her/him.