Re:Why I'm (Finally) Switching to CoffeeScript
by jashkenas on Monday September 05, 2011 @03:58PM
(#2963188)
The Node.js "Hello World" web server:
[ Parent
| on HN ]
Re:Why I'm (Finally) Switching to CoffeeScript
by deleo on Tuesday September 06, 2011 @04:03AM
(#2964632)
Well but this isn't written in CoffeeScript. This is what I was saying: CoffeeScript can work alongside Node.js but can't access the filesystem. It might be good in its own right for DOM scripting and such but it doesn't open any more doors than Javascript.
Re:Why I'm (Finally) Switching to CoffeeScript
by TrevorBurnham on Thursday September 08, 2011 @11:02AM
(#2974168)
> CoffeeScript can work alongside Node.js but can't access the filesystem.
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.
Re:Why I'm (Finally) Switching to CoffeeScript
by stdbrouw on Tuesday September 06, 2011 @04:59AM
(#2964757)
Then what is it written in, if not CoffeeScript. You're somehow very very confused about things :-)
Re:Why I'm (Finally) Switching to CoffeeScript
by deleo on Tuesday September 06, 2011 @05:20AM
(#2964802)
No I think you are confused. That is Node.js syntax. Ok now show me how you open a file on the filesystem in CoffeeScript then.
Re:Why I'm (Finally) Switching to CoffeeScript
by MostAwesomeDude on Tuesday September 06, 2011 @12:25AM
(#2964105)
I'm obligated to respond with the same server in Twisted:
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()
Re:Why I'm (Finally) Switching to CoffeeScript
by deleo on Tuesday September 06, 2011 @04:08AM
(#2964641)
OT question. How healthy is the Twisted ecosystem these days? Besides it being stable and been around for years, how does the post-divmod horizon looking? Is the whole stack still being maintained?
Re:Why I'm (Finally) Switching to CoffeeScript
by MostAwesomeDude on Tuesday September 06, 2011 @04:26AM
(#2964680)
All of the old Divmod team are still hacking Twisted. It's still maintained, everything gets taken care of, and there's really no doubt about Twisted's future.