MVP Laurent Bugnion has been kind enough to get an agreement with the head of R&D at Siemens Building Technologies to publish the firm's JavaScript Coding Guidelines. The guidelines were developed for a web application project in 2004, based on the companies C# guidelines. As such, expect them to translate nicely back to C# guidelines.
Please note the following:
-
The purpose of publishing this document on the World Wide Web is to promote and encourage consistent practices in the JavaScript programming community.
-
Siemens publish this document as information only. Siemens will not accept any responsibility regarding its content.
-
The guidelines are recommendations based on Siemens own experience, and may or may not make sense in the context of a different company, or a different project. Their intent is to be a source of inspiration for other JavaScript developers, and nothing more.
-
The guidelines are dated 20th of April 2004, which is quite some time ago. Most of the recommendations are still valid, but of course additions can be made.
You can find the actual guidelines here:
http://www.galasoft-lb.ch/myjavascript/Siemens_SBT_JavaScript_Coding_Guidelines.pdf