Found in 2 comments on Hacker News
yuppie_scum · 2023-03-08 · Original thread
I think you are talking about technical debt. Read the classics: The Phoenix Project, DevOps Handbook and Google SRE Book for plenty of discussion. Another great book on legacy software:
masterj · 2022-01-17 · Original thread
The author also has a long history of working at many places that aren't defense contractors, and a great book on working with large legacy systems (read: Cobol, mainframes, et al but relevant to all developers)

Fresh book recommendations delivered straight to your inbox every Thursday.