Fixing JavaScript Error Handling

I end up explaining this each time I train a new hire, so I figured I’d write it all out here. For our purposes, error handling breaks down into a) detecting that something has gone wrong, and b) choosing to do the correct thing in response. This is difficult enough to be its own area of research in software engineering, and JavaScript has more difficulty than most languages with error handling. We’re going to focus more on figuring out when things have gone wrong. Let’s start with how this has been done successfully in the past.

Read more ›

Posted in HTML5