When to use exceptions, vs. when to code defensively?

This blog post is a repost of an answer I wrote at To answer the question of which is considered better practice, between exceptions and coding defensively: In .NET, its common practice to avoid the overuse of Exceptions. One argument is performance: in .NET, throwing an exception is computationally expensive. Another reason to avoid … Continue reading