You're describing the broken windows theory. The broken window fallacy is the claim that destruction or waste is good for the economy because the cleanup generates economic activity (with the attendant multipliers). It's a fallacy because it leaves out that the original spender (by the owner of the broken window), on average, displaced other economic activity.
Also, the broken window thing asserts that small amounts of criminal activity lead to larger amounts of criminal activity via signaling that being bad or neglectful is OK, which is both not proven and irrelevant to software writers being prone to reinvent the wheel for whatever reasons they have.