CS239 Program Evaluation Sheet +---+------------------------------------------------------------------+ |A. | Identifier Naming | +---+---------------------------------------------------------+--------+ | | 1. Meaningful identifier names | | | +---------------------------------------------------------+--------+ | | 2. Mixedcase variable/method names | | | +---------------------------------------------------------+--------+ | | 3. Uppercase constants | | | +---------------------------------------------------------+--------+ | | 4. Underscore word separator in constants | | | +---------------------------------------------------------+--------+ | | 5. Title case class/package/interface names | | +---+------------------------------------------------------------------+ |B. | Declarations and Constants | +---+---------------------------------------------------------+--------+ | | 1. Identifier declaration only at beginning | | | +---------------------------------------------------------+--------+ | | 2. One identifier declared per line | | | +---------------------------------------------------------+--------+ | | 3. Identifier comments | | | +---------------------------------------------------------+--------+ | | 4. Appropriate use of constants | | | +---------------------------------------------------------+--------+ | | 5. Align variables names and comments in a column | | | +---------------------------------------------------------+--------+ | | 6. No unused variables or constants | | | +---------------------------------------------------------+--------+ | | 7. Assignment in declarations: vars no, constants yes | | +---+------------------------------------------------------------------+ |C. | Indentation | +---+---------------------------------------------------------+--------+ | | 1. Indent of 3 spaces | | | +---------------------------------------------------------+--------+ | | 2. Single statement branch/loop body indent | | | +---------------------------------------------------------+--------+ | | 3. Block indent | | | +---------------------------------------------------------+--------+ | | 4. Switch indent | | | +---------------------------------------------------------+--------+ | | 5. Else-If indent | | | +---------------------------------------------------------+--------+ | | 6. Long statement indent, no wrapped lines | | +---+------------------------------------------------------------------+ |D. | Spacing | +---+---------------------------------------------------------+--------+ | | 1. Spaces in parameter lists | | | +---------------------------------------------------------+--------+ | | 2. Spaces around binary operators | | | +---------------------------------------------------------+--------+ | | 3. No spaces before semicolon | | | +---------------------------------------------------------+--------+ | | 4. One statement per line | | | +---------------------------------------------------------+--------+ | | 5. Blank lines between sections | | +---+------------------------------------------------------------------+ |E. | Comments | +---+---------------------------------------------------------+--------+ | | 1. Acknowledgement Section | | | +---------------------------------------------------------+--------+ | | 2. Blocked class comment | | | +---------------------------------------------------------+--------+ | | 3. Blocked method/function comment | | | +---------------------------------------------------------+--------+ | | 4. Blocked comment for sub-sections | | | +---------------------------------------------------------+--------+ | | 5. Comments assume Java literacy | | | +---------------------------------------------------------+--------+ | | 6. Useful & concise comments | | +---+---------------------------------------------------------+--------+ |F. | Other | +---+---------------------------------------------------------+--------+ | | 1. Single return statement in methods | | | +---------------------------------------------------------+--------+