Also Joel wrote another article where he says that rewriting the code from scratch (removing technical debt or switching to a new popular framework) is generally a bad idea:
http://www.joelonsoftware.com/articles/fog0000000069.htmlImproving and perfecting the code is a task that can take infinite amount of time.