3 ms·
Misleading title; Coffeescript != JS. And while it's certainly possible to use this in JS, it's not particularly clean.
by GeneralMayhem 13y ago
Misleading title; Coffeescript != JS. And while it's certainly possible to use this in JS, it's not particularly clean.
- kevincennis 13y agoI don't think that's misleading at all. CoffeeScript generates JavaScript. It's literally the only thing it does. When you use this library, you're including a JavaScript file in your page (or requiring it in your Node project). It just so happens that in this case, the author(s) happened to use CoffeeScript to help them write that JavaScript.
- GeneralMayhem 13y agoC exists only to be compiled. Should math.h be considered an x86 assembly library?
- reflectiv 13y agoCoffee script may compile (or transpile, depending on your preferred term) into javascript...but it isn't javascript. Misleading title...
- grrowl 13y agoI'm writing an article titled "Performance of the & selector in CSS". I'd love you to defend it in the HN thread when it's done.
- zackbloom 13y agoIt's unfortunate, but JS is just never going to be as clean as CoffeeScript.
- twerquie 13y agoThe JS CoffeeScript produces is never going to be as clean as well-written JS. Since you cannot avoid the JS but you can avoid CS, I choose the former.