vnykmshr

Nodejs

tag: nodejs all tags →
2016
2015
2014
2013
Node

Express middleware chains

2013.288

Route handlers don't need to be nested callbacks -- Express middleware chains turn them into a flat, readable sequence.

Node

Sorting by multiple fields

2013.179

A composable predicate function for sorting arrays of objects by multiple fields -- with reverse, primers, and short-circuit evaluation.

Craft

Node.js style guide

2013.051

Our team's Node.js conventions -- error-first callbacks, early returns, callback alignment, and the formatting rules we drilled into every new developer.

Craft

Starting over

2013.036

Ditching WordPress for a custom Node.js blog engine powered by libgit2 -- git as the content store, markdown as the writing format, npm for everything else.

2012
Node

Connection pooling

2012.202

The Node.js MySQL driver doesn't pool connections. Under load, you run out. Fifty lines with generic-pool fixes it.