Get the latest tech news
Better Error Handling
Bad error handling has cost billions of dollars, crashed planes, killed people, tanked stock markets, wrecked vehicles, and delayed flights. As we reflect on Halloween, it’s fitting to consider these horror stories of software gone wrong.
Bad error handling has cost billions of dollars, crashed planes, killed people, tanked stock markets, wrecked vehicles, and delayed flights. As developers increasingly depend on type-checking, there’s a growing need for the type system to represent potentially throwing code, similar to how Promise indicates asynchronous execution. While some developers use@throw in JSDoc comments, relying on optional documentation isn’t a sustainable strategy for critical systems like flight controls or medical devices.
Or read this on Hacker News