What tricks do you know to make CoffeeScript code shorter?
CoffeeScript is language that compiles into JavaScript ("transpiles" into ES3, to be exact). The golden rule is "It's just JavaScript", meaning there's no runtime overhead. Most of JavaScript Tips & Tricks apply as well.
As a side-effect that also means: developers coming from JavaScript (including myself) tend to use JavaScript constructs instead of shorter CoffeeScript alternatives.
This thread focuses on tips specific to CoffeeScript.
Links to related topics:
yield
, it compiles into ES6 generator. Otherwise it tries to be as browser-compliant as possible. \$\endgroup\$