News for hackers. Stuff that matters.
Re:Xp - agile programming tools in Coffeescript by jesusabdullah on Tuesday April 05, 2011 @06:16AM (#2410367)
Truth be told, if anyone actually gets butthurt because xp duplicates functionality found elsewhere, then they're just being silly. People duplicate functionality all the time. In a lot of cases, we just call it "competition."

So, here's a question: I've noticed that the nodejitsu guys usually use Cloudhead's node-static for static file serving. On the other hand, I usually use Connect's staticProvider. Why do they use node-static over staticProvider? Also, can node-static be used as Connect middleware? Given that fileServer.serve seems to take "req" and "resp" arguments it would seem so, but I also see it being used with the stock http interface in all the examples.

Re:Xp - agile programming tools in Coffeescript by reddittor on Tuesday April 05, 2011 @06:34AM (#2410398)
node-static can be used as a "middleware". Here's an example of it being used in Stack: https://github.com/Marak/bugger/blob/master/lib/stack/static...