News for hackers. Stuff that matters.
Re:You’re better off using Exceptions by ryanianian on Monday February 03, 2020 @12:24PM (#22226376)
If you're wrapping every call in `try/catch` or equivalent, then something's probably wrong in your invariants. If customer.phoneNumber is a non-null foreign-key, your application should safely be able to assume that Phone.findByNumber(customer.phoneNumber) will succeed. If you don't get to assume that, then you have business-logic errors elsewhere and your best bet is to crash.

There are no comments on this comment yet.