/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

developerlife.com
| | andreabergia.com

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.
3.4 parsecs

Travel
| |
| | nick.groenen.me

After working through "the book" on the Rust programming language and getting started with the first non-trivial, real-world application I found myself faced with a question I didn't yet feel well-equipped to handle: "How should you structure error handling in a mature rust application?"
3.2 parsecs

Travel
| |
| | mbuffett.com

In my last project I used Sled and Rocket. I had to piece together how to use the two from a few different places so I put together this quick guide in case it helps others. The full code for this walkthrough is availabe here, if you want to fast-forward to the finished product. A lot of this ends up being about error handling, so that using sled in endpoints is more ergonomic. If you don't care to dive into error handling, you may want to skip those sections.
3.4 parsecs

Travel
| |
| | dehora.net

Back in 2013, I started a series of posts on programming languages I found interesting. One of the languages I wanted to write about at that time was Rust. As often happens, life got in the way, and it's only now that I'm coming round to a long overdue post. This is one of a series of posts on programming languages and you can read more about thathere.
16.6 parsecs

Travel
|