Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Style and Documentation Objective(s) F To become familiar with Java Style and Documentation Guidelines.

Similar presentations


Presentation on theme: "Programming Style and Documentation Objective(s) F To become familiar with Java Style and Documentation Guidelines."— Presentation transcript:

1 Programming Style and Documentation Objective(s) F To become familiar with Java Style and Documentation Guidelines

2 Programming Style and Documentation F Appropriate Comments F Naming Conventions F Proper Indentation and Spacing Lines F Block Styles

3 Appropriate Comments Include a summary at the beginning of the program to explain what the program does, its key features, its supporting data structures, formulas, and any unique techniques it uses. Include your name, class section, professor’s name, instruction, date, and a brief description at the beginning of the program.

4 Naming Conventions F Choose meaningful and descriptive names. F Variables and method names: –Use lowercase. If the name consists of several words, concatenate all in one, use lowercase for the first word, and capitalize the first letter of each subsequent word in the name. For example, the variables radius and area, and the method computeArea.

5 Naming Conventions, cont.  Class names: –Capitalize the first letter of each word in the name. For example, the class name ComputeArea. F Constants: –Capitalize all letters in constants. For example, the constant PI.

6 Proper Indentation and Spacing  Indentation –Indent two spaces. F Spacing –Use blank line to separate segments of the code.

7 Block Styles Use end-of-line style for braces.


Download ppt "Programming Style and Documentation Objective(s) F To become familiar with Java Style and Documentation Guidelines."

Similar presentations


Ads by Google