/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

adambennett.dev
| | arturdryomov.dev

Checked and unchecked, recoverable and unrecoverable -what to pick?
2.8 parsecs

Travel
| |
| | 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.
4.0 parsecs

Travel
| |
| | phauer.com

Drawbacks of exceptions and how Kotlin's sealed classes can make our code less error-prone, more readable, predictable and traceable.
4.7 parsecs

Travel
| |
| | blog.nndi.cloud

In this short guide you are going to see how to write to multiple files at-once in Java. The technique you will see here will allow you to write the same data to multiple output streams in one go, which will keep your code shorter, readable and safer from errors that can come through copy-and-pasting. The rationale First of all, why would you want to write to multiple output streams at once?
22.1 parsecs

Travel
|