3 ms·
Crashing a program is often safer for unexpected conditions than hoping your error handling will recover from it? Have you tested every combination of state +
by ec109685 7y ago
Crashing a program is often safer for unexpected conditions than hoping your error handling will recover from it?
Have you tested every combination of state + error and made sure your app is robust for each situation?
- EugeneOZ 7y ago1) Quite the contrary. And there is no "hope" - you either write code to recover or you throw an exception (and then there is a "hope" that some other code will catch it), it's just different approaches. 2) Yes, it's not so difficult. Writing tests, for example, also takes time - it's not a reason to don't write tests.