What if we didn't throw exceptions?
Exceptions aren't necessarily the root of all evil, but they're probably close to it. What's probably worse than exceptions is using exceptions when you shouldn't need to.
A good opportunity for reflection is seeing if you can do away with exceptions for the area of code you're in. Can you simply return a value that indicates the success or fail state sufficiently? Do you need to throw so someone else can catch?
Check out the full video:
[ Ссылка ]
#dotnet #dotnetcore #csharp #exceptions #coding #Programming #developers
Ещё видео!