2 ms·
But not having something when you think you do is by far the most common class of errors. In all the things I've debugged that's almost never been the actual e
by userbinator 11y ago
But not having something when you think you do is by far the most common class of errors.
In all the things I've debugged that's almost never been the actual error, but rather a symptom of something else (running out of memory, failed file opening, etc.) that needs further investigation. In my experience the "check for null, skip processing and continue if a value is null" way is a far worse option since it causes errors to propagate further, whereas a crash is an unmistakable call to action.
- hawkice 11y agoDepends a lot on programming language. Stuff like that tends to end up in Exceptions, if you have decently useful exceptions available.