True tech debt is about learning. We do the best job we can, knowing what we know. (Deliberate sloppy programming isn't tech debt; it's insanity.) We then learn that we could have done it better. So, we rewrite the code so that it looks the way it would have looked if we knew then what we know now.

Source: x.com/allenholub/status/1847382863857275193