Appendix A. Coding Standards

Table of Contents

Naming
Variable Names
Properties
Formatting
Identation
Spacing
Common Practises

Naming

Variable Names

Variable Names should be descriptive,short and concise, different words have to be seperated by a underscore.

Examples of Good style.  temp_widget, temporary_widget, big_button ..

Examples of Bad style.  TempWidget,tw,tWidget,wtTemp...

Variables in Class scope should have an underscore as their suffix and never be global, global Variables should only be provided by property accessor-methods.