error handling

The Stack Trace

A junior developer ran the program, and a stack trace fifty lines deep appeared. The junior cried, “There are so many places where this went wrong!” The senior developer asked, “Did the error happen in fifty places, or in one?” The junior pointed to the topmost line. The senior smiled. “And from where did that […]

The Error Handling

The developer wrapped every function in try-catch blocks. “Now nothing can go wrong,” they declared. The senior developer asked, “If you catch all errors, what throws them?” And then, “When you handle an error, where does it go?” What Are We Really Asking? Error handling reveals something fundamental about how we think about our systems […]