News for hackers. Stuff that matters.
Re:CoffeeScript: The beautiful way to write JavaScript by krmmalik on Wednesday March 09, 2011 @03:42AM (#2304328)
I'm new to programming and learned a little bit of javascript lately. I'm going to do a mini project on Node just to give myself an excuse to learn more programming.

If you dont mind my asking, how would i go about using CoffeeScript with Node?

Re:CoffeeScript: The beautiful way to write JavaScript by xsltuser2010 on Wednesday March 09, 2011 @03:52AM (#2304339)
If you build those simple 1-file-testservers with node, simply write them in coffee and then start them like "coffee myserver.coffee".

If it's more elaborated, you might want to set up some kind of build process and then use the generated js files. You could use a simple Makefile and compile your coffee files with coffee -c -b.

Re:CoffeeScript: The beautiful way to write JavaScript by xsltuser2010 on Wednesday March 09, 2011 @05:36AM (#2304508)
Oh, i forgot: You can add the --watch switch and get your scripts compiled on save.
Re:CoffeeScript: The beautiful way to write JavaScript by krmmalik on Wednesday March 09, 2011 @05:27AM (#2304499)
I'll try that. Thanks!