Defensive & offensive programming
Defensive programming helps with uptime and reliability. Offensive programming helps you find bugs. They're both extremely useful in software.

Search for a command to run...
Articles tagged with #error-handling
Defensive programming helps with uptime and reliability. Offensive programming helps you find bugs. They're both extremely useful in software.

Nulls and null checks have been a tricky problem in programming for decades. Thankfully, there are many solutions to make them easier to work with.

Exceptions vs error values has been a debate in error handling for decades. In this article we'll examine the pros and cons of each.

Catching and handling errors is an important part of error handling. Here are some best practices for it. Generally, it's good to: be very thorough with your error checking do your error checking first handle errors at the earliest appropriate place...

Recording errors is an important part of error handling. In short, when certain errors occur in programs, you want to know about it. This is particularly important with bugs. You need to: know that they occurred have useful information about them so...

What should a program do when it encounters errors? In my experience, a lot of programs hardly give any thought to this. Usually it's just the bare minimum of silently ignoring bugs and maybe recording that they occurred. However, this is an importan...
