News for hackers. Stuff that matters.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by MatthewPhillips on Friday February 24, 2012 @02:19PM (#3630541)
I would create a DocumentRequest object that takes your req and res, then break apart your callbacks to separate functions on the DocumentRequest prototype. Then you would simply consume it with:

  app.get('/documents', new DocumentRequest);
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by bphogan on Tuesday February 28, 2012 @10:02AM (#3643358)
Thanks for this. Been thinking about this. Could you recommend a book on patterns like these?