Disclaimer
This article was originally posted by one of the single smartest people in software development known as Uncle Bob on . Sadly his blog seems unreachable and has been for a long time, so I’m reposting the original content in its entirety as a public service. I make no claim I have anything to do with the creation of this article, I’m just preserving it for everybody to read. If you’re not ok with it, please let me know and I’ll take it down. Without further ado, here goes the original article.
The first rule of holes: If you are in one, stop digging.
Many software developers take this to mean that if you have a huge legacy mess in your software you should stop working on it and rewrite it from the ground up.

