Live data from Hacker News

CoffeeScript hits 1.0 -- Happy Holidays, HN

jashkenas.github.com

41–50 of 55 posts

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#42

Has anyone written a reverse CoffeeScript compiler that compiles legacy js into cs? Seems like it would be a great tool for starting off refactoring of big js files, or if you simply wanted to adopt cs as your standard.

Like with HAML,one would think the htlm2haml tool was key to its adoption

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#43

Thanks for this Jeremy and everyone who contributed. I've held off really coming to grips with javascript because I found it ugly and full of too many gotchas. But Coffeescript has got rid of all those excuses!

Satoshi Murakami deserves a large portion of the credit for the changes leading up to 1.0 -- his Coco dialect of CoffeeScript has been a strong influence on the features and optimizations that happened this fall. https://github.com/satyr/coco#readme

I thought I have a pretty good handle on CoffeeScript, but Coco's README confused me. Can someone explain the reasoning behind Coco's features? Can't seem to discern their purpose.

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#45

Earlier quoted context omitted.

Satoshi Murakami deserves a large portion of the credit for the changes leading up to 1.0 -- his Coco dialect of CoffeeScript has been a strong influence on the features and optimizations that happened this fall. https://github.com/satyr/coco#readme

I thought I have a pretty good handle on CoffeeScript, but Coco's README confused me. Can someone explain the reasoning behind Coco's features? Can't seem to discern their purpose.

  # Fix things CS goofs.
  # Add things CS lacks.

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#46

Has anyone written a reverse CoffeeScript compiler that compiles legacy js into cs? Seems like it would be a great tool for starting off refactoring of big js files, or if you simply wanted to adopt cs as your standard.

http://mindynamics.github.com/js2cs/

It is not without its cavets, though, with a little work it could be brilliant.

Alot of things that are in CoffeeScript simply are not possible in JavaScript; given there is no 1-1 relationship between CoffeeScript and JavaScript constructs.

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#47

Newbie question: How is CoffeeScript typically used? On a web server running node.js? In the browser after including CoffeeScript the way you might include jQuery? Either? Some other way?

Both.

Since CoffeeScript itself is written in CoffeeScript it was quite easy for the team to create a distribution of the compiler that runs in the browser.

You can find it in the extras folder of the source code repository.

Usually though, people opt to pre-compile their CoffeeScript on the server, pack, optimise and minify it before serving it to clients.

At Feisty, we write CoffeeScript that is intended to be executed on both the server and client.

To achieve this, we wrote "requisition" - https://github.com/feisty/requisition - a server-side packager and client-side loader - via require() - for CommonJS Modules written in CoffeeScript.

For a simpler, ad-hoc solution check out my tutorial project "Walk the Line" - http://github.com/pyrotechnick/walk_the_line

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#48

Earlier quoted context omitted.

We are developing an open-source MMO on node.js and WebGL - http://github.com/feisty

Is there something I can do to get involved with this project?

Absolutely...

I am "pyrotechnick" on Skype/Twitter/Facebook/Google Talk

We would love to hear from anyone who can contribute anything to the projects. Or who is interested in an alpha/beta

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#49
post #16

Earlier quoted context omitted.

We are developing an open-source MMO on node.js and WebGL - http://github.com/feisty

I want to build one too. Any chance the repo's receive meaningful README's ?

I'll endeavor to equip the projects without meaningful READMEs proper introductions over the next week. For the moment you can learn a little more about the projects at http://github.com/feisty/cortex/wiki

Please direct any questions/feedback/correspondance to "pyrotechnick" on the social network of your choice.

Re: CoffeeScript hits 1.0 -- Happy Holidays, HN

#50

Things have come a long way in the past year, since this conversation: http://news.ycombinator.com/item?id=1014080 Some of the interesting recent features include executable class bodies, extended regular expressions, functions with default arguments, and YAML-style object literals. Thanks for all the great suggestions and patches (almost a thousand Github issues, with many thousands of comments). The language has be…

This rules! And thanks to everyone in #coffeescript for answering my stupid questions as they come up :)
Post reply on HN