You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Java Coding Conventions for org.lcsim

Indentation

Please use 4 spaces per tab.

Setup your Java Indentation settings in Netbeans like this.

Naming

In general, abbreviations should not be used in naming.

Method Names

Methods should be named with a verb and a noun. The verb should be capitalized.

Here are examples of good method names.

computeSum()
getX()
setY()

Getters should start with get and setters should start with set. Method names
such as x() instead of getX() are ambiguous.

Variable Names

Variables should start

  • No labels