3 ms·
What i've never understood about coffeescript is, since it compiles to javascript, why not just learn to write javascript in the idioms that coffeescript genera
by krapp 13y ago
What i've never understood about coffeescript is, since it compiles to javascript, why not just learn to write javascript in the idioms that coffeescript generates?
No one would have a problem suggesting that a developer who only used jQuery actually learn how to code in standard js without the syntactic sugar. CS doesn't compile to bytecode, it compiles to an actual, human-readable and editable language.
So why not just learn that style of javascript and save yourself the hassle of pretending there's a second scripting language for the web?
- unmei 13y agoAbstracting away the messiness of classes in JS is justification enough for CS, IMHO. Also, to use your above example, I agree understanding that style of JS is important, but that doesn't mean you shouldn't use the tool.