4 ms·
Coffeescript tried to simplify the syntax, but it went too far. - A statement such as f(g(x)) becomes absurd without parentheses. - Indentation has a meaning,
by 29athrowaway 7y ago
Coffeescript tried to simplify the syntax, but it went too far.
- A statement such as f(g(x)) becomes absurd without parentheses.
- Indentation has a meaning, but it is legal to have inconsistent indentation.
Code is written once, read many times. Coffeescript got that backwards.
CoffeeScript is to JavaScript what Stenography is to Writing. Steno makes sense when you have to write something being dictated to you in real-time, but if you are not in a hurry, just write.
- dgoldstein0 7y agoprecisely. Though some of their constructs, like classes and for-in loops - are great for reading and writing.
- 29athrowaway 7y agoCoffeescript does have useful features, but problems such as the ones I described made CoffeeScript code inconvenient to maintain in practice. If we weigh the convenient aspects of CoffeeScript against the inconvenient aspects, in the end, CoffeeScript can be an inconvenient language to use. It was the case at least for me in various projects I had to maintain. Part of the inconvenience was all the JavaScript tooling you cannot use, and occassionally being forced to read JavaScript code generated by CoffeeScript.
- dgoldstein0 7y agoYup, totally agree. In 2012 when we adopted Coffeescript, it was less cut and dry - all the open source tools we love now - prettier, eslint, etc. - didn't exist. So the tradeoff was less obvious then.
- spiralx 7y agoI loved coding CoffeeScript on my own a few years ago. Today the thought of having to review PRs written in CoffeeScript by my junior developers is terrifying.
- diegoperini 7y ago> A statement such as f(g(x)) becomes absurd without parentheses. This was a feature I actually enjoyed.
- deleted 7y ago[deleted]
- jhanschoo 7y ago- A statement such as f(g(x)) becomes absurd without parentheses. Y'all just aren't used to ML syntax.
- 29athrowaway 7y agoTo me, having no parentheses is like driving on a 8 lane highway with no lane delimiters.
- mokanfar 7y agoyou'd really love lisp!