3 ms·
So remove all code for handling unlikely failure scenarios? ;)
by plandis 10y ago
So remove all code for handling unlikely failure scenarios? ;)
- zachrose 10y agoThis would depend on the kind of software you're making and the potential for an unhandled error to cause injury, expense or damage, but yeah. I would really like some system that can tell me how many times a line of production code has executed in the last year. For an ecommerce web app, I can't imagine how a line of code that hasn't run in the last two years would still need to be there.
- jshevek 10y agoMy immediate thoughts exactly, so I reread to confirm the parent said "consider" removing the code. I think this is reasonable. While considering the removal of unused code, we should should keep the code that handles unlikely failure scenarios.