CoffeeScript is interesting, but to be more so it shouldn't be limited to browser scripting. Until it doesn't become more general purpose i'll just stick to Python or Node.js
Sam Stephenson, the creator of Prototype.js, has been doing all kinds of awesome things with CoffeeScript and Node.js. And there's a chapter of my book on it...
http = require 'http'
server = http.createServer (req, res) ->
res.writeHeader 200, 'Content-Type': 'text/plain'
res.write 'Hello, World!'
res.end()
server.listen 3000
console.log "Server running at http://localhost:3000/" from twisted.internet import reactor
from twisted.web import resource, server
class HelloWorldResource(resource.Resource):
isLeaf = True
def render_GET(self, request):
return "Hello, World!"
reactor.listenTCP(3000, server.Site(HelloWorldResource()))
reactor.run()Um. Node.js gives you access to the filesystem... http://nodejs.org/docs/latest/api/fs.html
And anything you can do in Node, you can do from CoffeeScript code running under Node.