CS 11 Style Guide


Below you will find an itemized list of comments that I use when grading your code that address issues of programming style. What follows for each comment is a description of the style issue, how to handle it properly, and both a negative and positive example.

Note that there is no single style that can be considered the "best". However, the recommendations presented here are for one style that is commonly considered good and, critically, easy for me to read. You may deviate from these recommendations only if you have a specific motivation and an alternate approach that I reasonably consider to be equally, aesthetically satisfying.



Scott F. Kaplan
Last modified: Thu Oct 6 20:44:15 EDT 2005