Explore >> Select a destination


You are here

codewithstyle.info
| | www.milanjovanovic.tech
3.2 parsecs away

Travel
| | 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.
| | andreabergia.com
1.6 parsecs away

Travel
| | Error handling is a fundamental aspect of programming. Unless you are writing hello world, you will need to handle errors in your code. In this post, I will discuss a bit the most common approaches used by various programming languages. Return error codes This is one of the most ancient strategies - if a function can fail, it can simply return an error code - often a negative number, or null.
| | adambennett.dev
4.7 parsecs away

Travel
| | Android Bennett's blog :: android, kotlin, thoughts, opinions, occasional rants
| | pmig96.wordpress.com
15.8 parsecs away

Travel
| When I heard of WebAssembly (WASM for short) a few years ago, I thought: take your C program, compile it to WASM and the browser will simply run it, right? Well, WASM is not (yet) a first-class citizen in the browser world. It does not have access to all APIs and resources that JavaScript has....