POSTED June 20, 2012
http://felixge.s3.amazonaws.com/11/nodejs - best practices.pdf⚓
when using callbacks:
- pass errors as the first parameter
- throw errors if they happen
- try/catch for anything that could anyhow go wrong
- log uncaught exceptions globally and exit the process
0 Notes