I’m at the point with a project that most of it needs a rewrite, specifically one portion needs it very badly for a number of reasons:
- it’s no longer being used for it’s original purpose
- the code has been hacked so badly it’s very hard to work with
- the changes they want will hack it to pieces
- the original design wasn’t the greatest as we were trying a new technique
The unfortunate part is the piece of code that has been hacked so badly is run every minute and as the site gets used more, the longer it’s taking.
How do you tell your client that you need to take the time to think it through and rewrite it?
‘Technical debt’ is the term for this situation– most of the time when I explain it my managers have been pretty receptive to the idea it will save time in the long run.