Stop throwing Exceptions! Start being Explicit
If you’re writing a library for other developers to consume on NuGet or if you’re creating an API within your own project, stop throwing exceptions and start being explicit. Exceptions are like landmines. Consuming callers have absolutely no idea what exceptions you might throw or how/when/why they will step on one. C# is dishonest when it comes to looking at method signatures. YouTube Check out my YouTube channel where I created a video that accompanies this blog post. Honesty I first heard of the concept of honesty in programming languages from a video of Erik Meijer discussing functional programming. Take for example… Read More »Stop throwing Exceptions! Start being Explicit