3 ms·
What do you do when you write the test, "fix" the bug, only to find out the bug you saw is just a small example of a larger bug.
by postalrat 5y ago
What do you do when you write the test, "fix" the bug, only to find out the bug you saw is just a small example of a larger bug.
- philwelch 5y agoDepends. Maybe I throw everything away, write a new unit test for the true root cause, and start over from there. I’m comfortable taking very long journeys to reach very small code changes if that’s the best solution.
- theK 5y agoCorrect, often a root cause fix turns out to introduce much less complexity than a symptom fix.