News for hackers. Stuff that matters.
Re:Ask HN: How do you write clean node.js code? by michael_miller on Wednesday May 11, 2011 @09:55PM (#2539223)
This definitely feels like something that will help a lot. I tend to be doing similar things in many places of my code, like getting the current user's document from the user DB, and handling errors in the same way(by passing {error: "description"} and a status code of 500 back to the client). By factoring out shared/similar code into a library, I think the code will get a lot cleaner. Thanks for the suggestion!

There are no comments on this comment yet.