Skip to content
Joe Turner edited this page Aug 8, 2011 · 1 revision

Style Guide

Although the coding style for Audiolet is not super-prescriptive, it roughly follows the Google JavaScript style guide. The really important stuff which I try to stick to from this is:

  • Four spaces for indentation
  • Lines no longer than 80 characters
  • JSDoc style documentation.

Otherwise readability is king, so if it looks good and is fairly close to the guidelines then go for it.

Audiolet is semi-regularly run through the Closure Linter, so if any code you write passes through that then I'm generally happy.

Clone this wiki locally