ISEE 2018 -- IMPLEMENTATION

19 Jun 2018

Implementation


CODING CONVENTIONS

Coding convention is generally a set of guidelines created by the main author of the source code to maintain the readability and maintenance of the source code. File organization, Indentation, comments, Declarations, naming conventions, programming practices and principles

File Organizations

Package and Import statements

The first non-comment line of most Java source files is a package statement. After that, import statements can follow. For example: package java.awt; import java.awt.peer.CanvasPeer;

Indentation

Four spaces should be used as the unit of indentation. The exact construction of the indentation (spaces vs. tabs) is unspecified. Tabs must be set exactly every 8 spaces (not 4).

Comments

Comments should be used to give overviews of code and provide additional information that is not readily available in the code itself Declaration

Number Per Line

One declaration per line is recommended since it encourages commenting.

Initialization

Try to initialize local variables where they're declared. The only reason not to initialize a variable where it's declared is if the initial value depends on some computation occurring first.

Placement

Put declarations only at the beginning of blocks. (A block is any code surrounded by curly braces "{" and "}".) Don't wait to declare variables until their first use; it can confuse the unwary programmer and hamper code portability within the scope.

Class and Interface Declarations

When coding Java classes and interfaces, the following formatting rules should be followed:

Naming conventions

Naming conventions make programs more understandable by making them easier to read.

Coding Practices and Principles

Personas

Prototype AND STORYBOARDS

app-home

User view

app-home app-home app-home app-home app-home