Contents:
- Always Use Asynchronous Methods
- Never require Modules Inside of Functions
- Save a reference to this Because it Changes Based on Context
- Always “use strict”
- Validate that Callbacks are Callable
- Callbacks Always Pass Error Parameter First
- Always Check for “error” in Callbacks
- Use Exception Handling When Errors Can Be Thorwn
- Use module.exports not just exports
- Use JSDoc
- Use a Process Manager like upstart or forever
- Follow CommonJS Standard
Your new post is loading...