Next
/
Previous
/ Shipman's Home Sweet Homepage
/ Site map
Naming conventions for Icon objects
Here are some naming conventions I use for Icon objects:
- Class names are capitalized (example: Tree). The class
names are used only in comments.
- The constructor for class ``Foo'' is generally called
``Foo_New'' but this is not a hard rule. Sometimes the
constructor gets its information by parsing, in which case it
might be called ``Foo_Parse''.
- In most cases the state for an object is a record. For an object
of class ``Foo,'' the type of the record would be
``fooTag''.
- Method names use underbars between the words, e.g.,
``Foo_New'' is the usual constructor name for class Foo.
- Ordinary variables and field names use the Pascal internal
capitalization convention, e.g., ``fooCount''.
- Defined constants use the typical C convention of all caps:
``LOG_FILE_NAME''.
Next: An example of a Cleanroom object
See also: Using the Cleanroom methodology with objects
Previous: Parts of an Icon object
Site map
John W. Shipman,
john@nmt.edu
Last updated: 1996/04/14 23:04:18
URL: http://www.nmt.edu/~shipman/soft/clean/oonaming.html