Changes between Initial Version and Version 1 of Documentation/DevelopingForXinha/StyleGuide


Ignore:
Timestamp:
11/17/08 21:33:36 (11 years ago)
Author:
nicholasbs
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/DevelopingForXinha/StyleGuide

    v1 v1  
     1 
     2== Code Style Guide == 
     3 
     4This page is meant to provide some basic coding practices and style guidelines for developers working on Xinha. 
     5 
     61. '''Don't use tabs.''' Instead, indent code blocks with '''two spaces'''. 
     7 
     82. Always use semicolons after curly brackets (see #1326). E.g.,  
     9{{{ 
     10var foo = function() { 
     11  alert('foo'); 
     12}; 
     13}}} 
     14 
     153. Always use {{{var}}} when declaring variables, unless you ''really'' do mean to create a global variable.