COMP 105
Alice Documentation and Coding Standards

(Loosely based on the Kalamazoo College Computer Science Program Style Guide and Documentation Standards)

Last revised: January 2006


Synopsis

Programming is a form of communication. A program that is difficult to read and maintain is not very valuable, even if it happens to work. The purpose of this document is to provide some guidelines that will help you to create well documented and well organized Alice programs.


Comments

Comments allow us to write in natural language to clarify the intent of the program. Comment programs internally with clear, coherent statements in concise English, using good grammar, punctuation, and spelling. Your Alice program should always include the following comments:

Programming Style

Even more important than good comments is good programming style. A meticulously commented program that is poorly organized is much more difficult to understand than a well organized program with very few comments. Learning good programming style takes practice, but the following guidelines should get you off on the right foot.

Naming

Organization