Javascript Coding Standards

  • See UsingJQueryWithFoswiki#CodingStandards
  • Foswiki generally contains the source code in foo.uncompressed.js, and the minified version in foo.js. BuildContrib will take care of minifying and gzipping the uncompressed version for you, as long as the MANIFEST says that they should be there.
  • Verify and improve your code with http://jslint.com
  • Read Crockford's "Javascript: The good parts" - or at least read what he has to say, Eg. google talk. IMHO this book is to Javascript what Damian Conway's Perl Best Practices is for perl.
  • Please remember to put copyright header and license information in your source files.
Topic revision: r3 - 13 Nov 2010, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy