Comment

Comment by laggyluke

You might want to reconsider your Node.js callback API. The standard way of returning errors is via the first argument :

    callback(err, data)
while you suggest doing it like this:

    callback(data, err)
Apart from being an eyesore, it breaks compatibility with a ton of third-party libs like `caolan/async`.
parent laggyluke 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton