Restify 1.0 for Node.js is officially out
mcavage.github.com
mcavage.github.com
If you are using full verbs for everything else, stay consistent please :-/
Is api.test.com/teacher?id=1234 more kosher?
app.all('/users', middleware, routes.user);
If you're just doing CRUD on a route, that can be abstracted fairly easily. It can also help better organize your code on a larger project (a la MVC-ish), rather than the Sinatra-like feel.
Too many "beginner" express examples show everything in one big file. With all the route logic, etc all in one place, without any CRUD abstraction. Generally these demos are so small that they don't need any abstraction. It takes 20 minutes to write the whole thing, and it's not meant to do much in production. In a production environment, where you have a bigger app, you'll want to abstract away as much of the boilerplate code as possible. Luckily it's fairly trivial to compose abstract higher order functions in javascript to do just that.
1. Small aesthetic thing - in the menu, there are 2 items named "Server API", which are both hi-liting when either is in context.
2. Your intro might benefit from listing not only why/when to use it but what kind of use cases are better suited - eg. which use case brought you to begin building it?
Looking through the rest!
http://nodejs.org/docs/lates/api/http.html#http.ServerRespon...