4 ms·
This is great. I had a hard time dealing with CoffeeScript code. CoffeeScript tools are behind the state of the art in JavaScript.
by partycoder 9y ago
This is great. I had a hard time dealing with CoffeeScript code. CoffeeScript tools are behind the state of the art in JavaScript.
- Hydraulix989 9y agoThis is a cautionary tale for developers that flock to the flavor-of-the-month tech (CoffeeScript used to be all the rage in 2013!), only to find that the mature tech not only caught up but completely eclipsed it in 2017.
- partycoder 9y agoWell, in justice, CoffeeScript did influence JavaScript. However some of the decisions were in my opinion bad: removing delimiters and making whitespace more "meaningful". That makes it really hard to automatically format code in a way that deterministically doesn't break.
- molszanski 9y agoIMO that was one bad decision in CS1 that they allowed mixed whitespace to compile in the first place. CoffeScipt 2 (which is ES6 compliant) doesn't allow you to compile/transpile any code with mixed indentation. BTW in Atom, I've successfully used atom-beautify with coffee-fmt and coffee-formatter to reformat very bad code with no errors
- partycoder 9y agoThe formatter from IntelliJ would cause the file to not compile at times. Maybe I should have tried Atom. Too late now.
- josephg 9y agoJeremy Ashkenas (author of coffeescript) helped bring es6 up to par. You can see the influence of coffeescript all over es6 in the class syntax, string interpolation and destructuring. It would be wrong to say that the investment we (as an industry) made in coffeescript was a waste. Far from it.
- masklinn 9y ago> Jeremy Ashkenas (author of coffeescript) helped bring es6 up to par. By spending basically the entire runup to it poo-pooing it? > You can see the influence of coffeescript all over es6 in the class syntax, string interpolation and destructuring. Yeah it couldn't be the dozens of languages which have been doing that since the 80s and which browser developers were already mining for extensions no sir, Coffeescript invented having a class keyword (which is why it was already a reserved keyword in JS), invented string interpolation which it lifted directly from Ruby (according to its own doc) and from which JS string templates diverge both syntactically and semantically, and invented destructuring (and will I'm sure soon invent pattern matching).
- nemothekid 9y ago4 years is hardly "flavor of the month" - ES4 is as foreign to ES2017 as Coffeescript is.