Re:A Short Cautionary Tale About Refactoring
by scott_w on Sunday March 21, 2021 @03:47AM
(#26528821)
I think this is also a good tale about the value of testing.
If the original code hadn’t tested these error paths, the author wouldn’t have found out about this use case until after the first reports came in. Worst case, they’d never know and the customer would get a shoddy experience forever!
If the original code hadn’t tested these error paths, the author wouldn’t have found out about this use case until after the first reports came in. Worst case, they’d never know and the customer would get a shoddy experience forever!