Touch Technologies, Inc.
Coding Standards


Previous Contents Index


Appendix B
Coding Standards Checklist

Table B-1 Coding Standards Checklist
[ ] Code is written in lower case.
[ ] Code begins at the first character on each line.
[ ] All temporary variable and array names are a single letter, or a single letter followed by a number.
[ ] All debug code is noted with the correct designation:
!++ debug programmers_initials ++
[ ] IF THEN statements contain two spaces between the IF and the condition, and two spaces between the condition and the THEN.
[ ] The block of code under loops is indented two spaces under the beginning statement.
[ ] Parentheses are around all sets of operations.

Table B-2 Checklist for Programs and Routines
[ ] All target routines in code follow the routines that call them.
[ ] The length of the body of routines does not exceed 25 lines and 80 columns wide.
[ ] Routines are separated by three blank lines.
[ ] All routines have correctly formatted headers.
[ ] All routine names in the headers are lower case and double-spaced.
[ ] Any routines that are longer than 25 lines contain an explanation in the header of why they are longer.


Index Contents