I think this is a mistake a lot of people make: > Carving out time to pay down tech debt requires buy-in from leadership. Not in my experience! I think one can do pretty well a) refusing to put debt in to begin with, and b) for any new work, including necessary cleanup of what you'll be touching in the estimates. Some years back I had an explicit understanding with a product manager: the engineers would track tech de…
I prefer to just do refactors before work starts, or during the work itself.
I have run into managers that read how to work with legacy code and think everything we do should be one line changes and major refactors mean we're basically doing rewrites.
I still work there. Sometimes.