True #software #reuse story from someone who's been #programming forty years now. (Today was not the first time this has happened.)
You look at brilliant piece of #coding you wrote. You think, "I need something kinda like that, but a little different." You copy and paste even though you shouldn't, because you want it done fast and are being lazy.
After spending some time writing over your "time-saving" copy-paste, you look at the result and see that it is actually interchangeable with the original.
Lesson: If copying and pasting would save you a significant amount of typing time, you can probably re-use it with a few modifications that might make it easier to re-use next time.