/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

phauer.com
| | adambennett.dev

Android Bennett's blog :: android, kotlin, thoughts, opinions, occasional rants
4.7 parsecs

Travel
| |
| | www.milanjovanovic.tech

How should you handle errors in your code? This has been a topic of many discussions, and I want to share my opinion. One school of thought suggests using exceptions for flow control. This is not a good approach because it makes the code harder to reason about. The caller must know the implementation details and which exceptions to handle. Exceptions are for exceptional situations. Today, I want to show you how to implement error handling using the Result pattern. It's a functional approach to error handling, making your code more expressive.
4.4 parsecs

Travel
| |
| | source.coveo.com

Our technical blog.
3.4 parsecs

Travel
| |
| | vittorioromeo.info

[AI summary] The author argues that sum types and algebraic data types are safer and more readable than exceptions for handling errors in C++ programming.
7.9 parsecs

Travel
|