2 ms·
The two big variables are the skill of the architect, and their understanding of the real problem. Rewriting is valid if the new architect is more skilled and
by dasil003 18y ago
The two big variables are the skill of the architect, and their understanding of the real problem.
Rewriting is valid if the new architect is more skilled and understands the problem better. Unfortunately it's quite likely that the new architect doesn't understand the problem better, in which case the new architecture will likely be worse than the first.
To complicate matters, the problem may change over time as well. So if you sink the time into a rewrite, there's no guarantee the new version solves the latest version of the problem any better than the first.
Given the uncertainties, I have to see a real solid reason and clear benefits before doing a rewrite. Just because there are some code smells or a lot of bugs doesn't mean I can come up with a better architecture necessarily. I'd rather refactor a bit at a time and see what shakes out.
- raganwald 18y ago> The two big variables are the skill of the architect, and their understanding of the real problem. I read the article as discussing when to throw your own code away and start over. Under those circumstances, aren't you more skilled today than you were when you wrote the original? Is your understanding of the problem better or worse? For that matter, is it even the same problem, or has the problem itself changed since you first wrote the code?