You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/09 06:43:45 UTC

[Myfaces Wiki] Update of "coding" by AdamWiner

Dear Wiki user,

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

The following page has been changed by AdamWiner:
http://wiki.apache.org/myfaces/coding

------------------------------------------------------------------------------
  
   * Private members and methods use underscore (_) prefix
  
- In addition, package-private use double underscore prefixes.
+  * Package-private use double underscore prefixes.
  This is intentionally ugly;  we strongly discourage the use of
  package-private access, and in general recommend everything receive the most limited
  access possible.
  
   * Constants can be placed in uninstanciable classes if needed, always access them using fully qualified names. Do NOT use implements on interfaces defining constants, that practice is discouraged. Static imports should not be used either.
  
- This isn't a standard as such;  it was a common coding practice (esp.
- UIConstants), but we're moving away from it.
  
   * Constants and attributes are defined at the end of the class files, after methods
  
@@ -28, +26 @@

  
   * 2 space indent, no use of tabs allowed at all.
  
+  * Braces are always on new lines
+