You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 customError
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.
The text was updated successfully, but these errors were encountered: