Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Javascript/Coding Style

From MoodleDocs
Revision as of 02:03, 16 October 2013 by Damyon Wiese (talk | contribs) (Created page with "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 c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.