News for hackers. Stuff that matters.
Re:A Case Against Using CoffeeScript by tjholowaychuk on Tuesday December 13, 2011 @09:04PM (#3350262)
I've seen terrible JS, but I've seen much worse CS. Most programmers have relatively no sense of organization, and when unleashed with CS create things far more nasty than their JS counterparts.

nasty: https://github.com/jashkenas/coffee-script/blob/master/src/r...

nasty: https://github.com/jashkenas/coffee-script/blob/master/src/o...

nasty: https://github.com/jashkenas/coffee-script/blob/master/src/c...

sexy: https://github.com/jashkenas/coffee-script/blob/master/src/g...

Re:A Case Against Using CoffeeScript by thejefflarson on Wednesday December 14, 2011 @12:37AM (#3350786)
I've seen terrible assembly but I've seen much worse C. Most programmers have relatively no sense of organization, and when unleashed with C create things far more nasty than their assembly counterparts.

nasty: https://github.com/mirrors/gcc/blob/master/gcc/c-family/c-co...

nasty: https://github.com/mirrors/gcc/blob/master/gcc/c-family/c-le...

But you get the idea. I'm merely pointing out that compilers are tricky and complicated beasts. And especially in the rewriter CS has to jump through hoops to disambiguate.

Re:A Case Against Using CoffeeScript by tjholowaychuk on Wednesday December 14, 2011 @06:35PM (#3354253)
I dont know if I would call CS complicated, but yeah you'll get that all the way down. Noobs will write their js, bigger noobs write CS, smarter people off writing C, and even smarter people writing ASM. Most will still write nasty code regardless but the ambiguity in CS makes this far more painful to consume
Re:A Case Against Using CoffeeScript by jashkenas on Wednesday December 14, 2011 @12:02AM (#3350689)
Unfortunately, in this particular case, the code was equally nasty even when all of those methods were written in Ruby, and has grown nastier over time through pull requests. I think it tells you far more about the author than the language ;)