Invisible infrastructure, the garbage pickup, water, power, and roads that nobody notices until they stop, serves as the model for error handling in software. The episode argues that good error handling goes unseen by the user, bad error handling is obvious, and both come down to planning for failure during development.
Host Matthew Minneman begins with the background work that keeps daily life running, from laundry done by a parent to fuel delivery, power lines, and garbage collection. He recalls seeing trash pile up on street corners during a strike while traveling, as an example of how fast a missing service becomes visible. Error handling, he says, works the same way: done well, nobody knows it is there. His good example is a game console that pauses and prompts the player when a controller disconnects. His bad example is the blue screen of death, which stopped all work and left the user with a code to research. Minneman then explains try and catch blocks, notes that not all errors can be handled the same way, and uses a log-writing script to show the choices involved. He recommends building error handling and QA into the development process.
In this episode:
Key takeaway: Good error handling is like garbage pickup: nobody notices it until it stops. Plan for what can go wrong as you build, and test for it before your users find it.