Proper indenting → Indentation should be present and same amount of
space should be used everywhere.
Good variable names → Avoid names, like x, y, etc. Use camel-case
notation (e.g., waterTemperature).
Proper braces → For conditionals (if statements) and loops we wil
accept either of the following styles: Brace Styles.
Notice the same style(s) apply to for loops.
Proper use of symbolic constants → Any time a constant appears in a
program there should be a final variable assigned for it. Symbolic constants
should be all in capital letters, with an underscore separating words (e.g.,
BOILING_TEMPERATURE).
You should break long lines so they span multiple lines. For example:
if (............ ||
............ ||
............ )
No line should be longer than 80 characters.
There should be comments in the following places:
Above each function. This comment should be very detailed and should
describe the complete "contract" for the function. (It should describe
everything someone would need to know if they were calling the
function.)
Next to variables, sometimes (if the variable's role is not obvious.)
Near complex segments of code there should be comments to guide the reader.
You must avoid code duplication. Two or more segments of code that are
essentially the same, need to be combined by either a supporting method or
some code reorganization.