3 ms·
You're assuming that old code doesn't have tests, or that tests can't be written for it, or that it can't be patched without a rewrite?
by SonicSoul 11y ago
You're assuming that old code doesn't have tests, or that tests can't be written for it, or that it can't be patched without a rewrite?
- geofft 11y agoI'm assuming that if it doesn't have regression tests, the old code is untouchable / legacy code, because you can't add features to it without risking breaking something. If it does have regression tests, then you can rewrite it and only switch to the rewrite once it passes all tests. Joel's argument goes away, because the regression tests document exactly what obscure edge cases you wouldn't have thought of.