2 ms·
When writing something that feels like it could break, or when dealing with unknown external APIs, I like to add an exception handler to _all_ new methods with
by jspash 5y ago
When writing something that feels like it could break, or when dealing with unknown external APIs, I like to add an exception handler to _all_ new methods with a TODO and expiry date 3 months from now. Then on clean up days, if an exception wasn't triggered in that time frame, just remove the catch block.
Perhaps I'm being too cautious (or too naive)? But it's saved my skin a few times.
The only thing that I don't like about this technique is that the 3 month period is arbitrary. But it works well enough for me.