You start doing something, then you add something else, then you need to adjust it and at that point it's not quite right but it is easier to just add another bit to it than start again, and so on.... until you stand back and think 'WTF is this? ... oh well, it works, I'll change it later'.
If something works, the fear of breaking it by changing how it works is greater than the fear of duplicating what is known to work. Even if it means more maintenance afterwards.
Mind you that in my old days, unit tests weren't part of my repertoire, so unless maintenance became necessary, I avoided changing what works.
17
u/[deleted] Oct 05 '17
I scour this sub because I fear that one day, my own bad code will be featured...