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:52:08 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=4&rev2=5

  
  == JS ==
  
-   * four spaces softab ''''or brian will kill you all''''
+   * 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 
    * single quote your string literals; it looks cleaner
-   * use literal syntax always {} [] ''
+   * use literal syntax always {{{ {} [] '' }}}
    * 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 an opening parenthesis, square bracket or any statement which begins with an arithmetic
operator token /, +, or - 
+   * semicolons are unneccessary visual entrophy, however, you must use them immediately
before an opening parenthesis, square bracket or any statement which begins with an arithmetic
operator token {{{ /, +, or - }}}
  
  == Java ==
  

Mime
View raw message