incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "StyleGuide" by brianleroux
Date Fri, 20 Jan 2012 17:33:45 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "StyleGuide" page has been changed by brianleroux:
http://wiki.apache.org/cordova/StyleGuide?action=diff&rev1=1&rev2=2

- Style Guide: the never-ending debate, always a good source for insulting your engineering
friends. Two spaces or four? Soft tabs or hard? Curly braces on a new line or not?
+ Style Guide: the never-ending debate, always a good source for insulting your engineering
friends. 
  
- figure out style guidelines, for each language...
  
+ 
+   * four spaces softab or brian will kill you all
+   * brace on same line or crockford will kill you all and semicolon insertion will expeditate
the catacism. this is a k&r world not a c# world!
+   * single quote a string
+   * use obj literal syntax
+   * comma first makes it easier to read and catch definition bugs
+   * define variables at the top of methods; they'll be hoisted there anyhow
+   * semicolons are unneccessary visual entrophy however you must use them immediately before
the opening parenthesis or square bracket or any which begins with one of the arithmetic operator
tokens /, +, or - 
+ 

Mime
View raw message