jsfest / sf-cfp

JSFest Call for Proposals
43 stars 1 forks source link

Error Handling Best Practices. #70

Open xjamundx opened 10 years ago

xjamundx commented 10 years ago

I've been at PayPal for a few months as part of the move everything to node.js effort. I've noticed that different ideas about how to handle errors in all parts of our app has led to some weird errors and huge problems. We've ended up with some conventions that I think will be helpful to share with other people going through similar transitions and others getting up to speed with node.

We'll discuss things like why try/catch is such a bad idea in async code, decent ways to handle errors in sync APIs, how & why to create custom Error objects, and a friendly reminder to mostly use The Callback Pattern™.

I'll probably be showing lots of terrible code that was found in production. Hopefully it will be a good laugh and informative for people.

alessioalex commented 10 years ago

:+1:

mstuart commented 10 years ago

:+1: