Google JavaScript Style Guide...

I’m not sure how many of you have seen this before (I certainly haven’t) but here is Google’s own recommended style guide for open source JavaScript projects. Some of these I agree with, others I don’t; but in either case I think having a document formatted similarly for Cesium would be beneficial. This could also help serve as the tie-breaker on style discussions when there is an internal disagreement. What do you guys think?

http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml

I agree that we need to flush out our coding conventions. People tend to want to follow them if they know what they are. I’m up for adding already established best practices to it, and presenting others - perhaps some based on Google’s - here. We also need to strive to keep the guide as short as reasonable so it is actually read.

Patrick