vnykmshr

Writing

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

History as communication

Commit history isn't a log of what happened -- it's a narrative you author. Rebase, atomic commits, and the discipline of writing history for the person reading it six months from now.

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.

2011
Notation

Naagin

Decibel made Indian rock that sounds Indian. That shouldn't be rare, but it is.

Notation

Chandigarh

Chandigarh was beautiful. I couldn't feel it. I don't know why.