Skip to content

Instantly share code, notes, and snippets.

View piranna's full-sized avatar

Jesús Leganés-Combarro piranna

View GitHub Profile
access config from a single place, propagate it using only function or constructor arguments
Single error handler
log result in a single place, or very few places, at most high level as possibleº
Don't log errors, throw them and catch them in caller function
use object destructuring from parameters
standar error responses
bunyan as logger
limit tests timeout