GAE/Coding Conventions

From MegaGlest
Revision as of 04:54, 14 April 2009 by 118.208.63.243 (talk) (→‎Setters/Mutators)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

These conventions only apply to new code. Don't spend lots of time modifying existing, working code.

Setters/Mutators

should be in the form of:

void setMyAttribute(type v) {myAttribute = v;}

as opposed to

void setMyAttribute(type myAttribute) {this->myAttribute = myAttribute;}