Difference: CodingGuideLines (1 vs. 5)

Revision 52011-02-08 - fransham

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="WebHome"
>
>
META TOPICPARENT name="Restricted.Analysis52BaseVM"
 

Coding Guidelines

What do we want for the coding outlines/layout?

Revision 42010-09-17 - sperkins

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Coding Guidelines

Line: 20 to 20
 THIS_IS_A_CONSTANT thisIsAMethod() thisIsAVariable
Added:
>
>
private String something;
 public void setSomething(String something) {
Changed:
<
<
this.something = something
>
>
this.something = something;
  [tab] if(this.else) { [tab] somethingElse();

Revision 32006-05-11 - AndreCharbonneau

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Coding Guidelines

Line: 33 to 33
 Package naming - maybe something like ca.gridx1.sp.[package name]

Added:
>
>
Comments
TIP Maybe we should use spaces instead of tabs in our coding standards. When tabs are used, it often defaults to 8 spaces, which often leads to difficult to read code when there is more than 3 or 4 indentation levels. Most modern text editors and/or IDE can do the conversion between tabs and spaces automatically. Usually, I prefer a small number of spaces for indentation, such as 2, as it leads more space for longer (more descriptive) variable, class and method names.

-- AndreCharbonneau - 11 May 2006

 -- ChrisUsher - 21 Mar 2006

Revision 22006-04-26 - AndreCharbonneau

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Coding Guidelines

Line: 20 to 20
 THIS_IS_A_CONSTANT thisIsAMethod() thisIsAVariable
Changed:
<
<
public void setSomething(String Something)
>
>
public void setSomething(String something)
 { this.something = something [tab] if(this.else)

Revision 12006-03-21 - ChrisUsher

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Coding Guidelines

What do we want for the coding outlines/layout? These are open to discussion

General
Do not use abbreviations

For Java
Use javaDoc comments

Keep properties private - use get and set methods

Like this?

this.is.a.package
ThisIsAClass
THIS_IS_A_CONSTANT
thisIsAMethod()
thisIsAVariable
public void setSomething(String Something)
{
        this.something = something
 [tab]  if(this.else)
        {
          [tab] somethingElse();
        }
}

Package naming - maybe something like ca.gridx1.sp.[package name]

-- ChrisUsher - 21 Mar 2006

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback