sometimes, it’s just not feasible to re-write software. even though most developers have an urge to do so with code they have not messed up themselves. joel spolsky argues:
..it takes 10 years to write good software.. ..re-writing software is the greatest strategic mistake you can make..
i agree strongly, especially for web projects. i’m currently trying to salvage a project that has some real messy code. however, far from throwing out everything, we try to fix it up piecewise. joel has some other good articles at his web site.