Talk:Javascript/Coding Style
From MoodleDocs
Thankyou Andrew for working on this - it is sorely needed.
Some points I think we need voting/consensus on:
"Contrary to the standard Moodle coding style, we prefer to use camelCase for JavaScript."
"be spread across multiple lines for complex types (including all
objects and arrays, no matter how simple"
We could be more specific about which yuidoc tags are required (Where is @namespace required?)
with a maximum length of 150
"In the case of object property assignation, there should be a space after the colon, but not before."
Some instructions on how to use YUIdoc / shifter to check the format of the JS/comments would be welcomed.