Coding Style

``The use of equal negative space, as a balance to positive space, in a composition is considered by many as good design. This basic and often overlooked principle of design gives the eye a 'place to rest,' increasing the appeal of a composition through subtle means.''

Translation: Use the space bar, newlines, and parentheses.

Curly-brackets are not optional, even for single line conditionals.

Tabs should be 4 characters in width.

Special: If you are using XEmacs add the following to your init.el file:

(setq c-basic-offset 4)
(c-set-offset 'case-label 4)

Bad

if(a&&b==5||c!=0) return;

Good

if (((a) && (b == 5)) || 
    (c != 0)) {
       	return;
}



Jack Lange 2010-04-13