vnykmshr

Nodejs

tag: nodejs all tags →
2016
2015
2014
2013
Node

Sorting by multiple fields

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

Craft

Node.js style guide

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

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

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