- You will put your name and email address at the top of every .java file. The more advanced among you can use the @author tag
- You will properly indent all your code. Control-a Control-i is your friend.
- You will write comments that describe what your code is meant to do but not comments that merely echo the code. That is: "calculate the marginal tax rate" is a good comment but "increase variable i by 5" is a bad comment.
- You will use proper English grammar in your comments.
- You will ensure that all variable names are spelled correctly. Misspelled variable names are a common source of bugs.
- You will choose good variable names: i is reserved for simple loops, otherwise the variable should describe its contents, in
camelCasing
, such asbookTitle
ornetProfit
. - Your code will be neat.
Computer majors might want to take a look at our CSCE 240 programming style sheet to learn in more detail about style rules.
No comments:
Post a Comment