CoffeeScript Style Guide
Join the DZone community and get the full member experience.Join For Free
"Write new JS in CoffeeScript."
That alone is an awesome endorsement of the "little language", but there is more good advice:
"Follow @jashkenas's style. See the documentation for good examples."
Without doubt, this is correct. The CoffeeScript home page should be your first stop for style. However, it's not strictly a style guide, so for a more dedicated resource I recommend polarmobile/coffeescript-style-guide. It answers questions such as "tabs or spaces?", and I expect it will continue to grow, becoming a very comprehensive resource.
Of course, you could argue that in the age of computer automation, the best style guides are linters. CoffeeLint is described as "a style checker that helps keep CoffeeScript code clean and consistent." For style consistency across a team, it's likely to be a great choice.
Published at DZone with permission of Chris Smith, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.