/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

blog.ploeh.dk
| | andreabergia.com
4.0 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.
| | www.foonathan.net
3.4 parsecs away

Travel
| | This post describes techniques for libraries to allow both exceptions and non-exceptional use. One is a technique I dubbed exception handler.
| | patshaughnessy.net
3.3 parsecs away

Travel
| | [AI summary] A Ruby developer explains the unique challenges of mastering Rust's mandatory error handling by comparing it to learning a foreign language with distinct vocabulary for concepts like success and failure.
| | blog.jcoglan.com
19.0 parsecs away

Travel
| [AI summary] This technical article explores the challenges and solutions for implementing strict named argument semantics in JavaScript, comparing approaches from Ruby and Python, and detailing how TypeScript's type system and runtime checks like Object.keys() can enforce required fields and reject unwanted options while handling prototype pollution risks.