3 ms·
One distinction that should be made is when some elements are the same intentionally while others are the same by coincidence. I see no problem with duplicate
by rileymat2 10y ago
One distinction that should be made is when some elements are the same intentionally while others are the same by coincidence. I see no problem with duplicate code in the latter case.
- mlvljr 10y agoEverything is there intentionally, in a sense; but some shapes of codebase adapt to some requirements changes better, and some less -- and thus, this becomes a choice of implementation strategy given current requirements and some sort of probabilistic model for their change (both in theory and practice, where the probabilities have to be assumed creatively, as there is no other way). Basic and worth-thinking-over stuff, yet in no book or blogs (as bloggers seem to like to express themselves on "cohesion" and such, w/o using any metrics, of course, even for simpler examples :)).