JavaScript Style Guide

Ajaxian.com has just reported on Dojo Toolkit’s new JavaScript style guide.

Ah the hours of arguing over coding style. We have all been there.

It starts with:

Should our team/company have guidelines?

And then it gets to:

{ braces MUST be on the same line, are you NUTS!!!

It is often good to look at what others are doing, and the Dojo Toolkit has their
Javascript Programming Conventions Guide published.

It is very detailed, going over naming conventions, file conventions, variable usage, code layout, whitespace, and comments.


About this entry