Programming Style


Style Conventions
1. Names A name should be informative, concise, memorable and preferably pronounceable. 2. Expressions and Statements 3. Consistency and Idioms 4. Magic Numbers Magic numbers ("Metadata") are constants, array sizes, character positions, conversion factors, and other literal numeric values that appear in programs. 5. Comments Reference: Kernighan, Brian W, and Pike, Rob, The Practice of Programming, Addison-Wesley, 1999

Questions about the questions? Send mail to Robert Katz: katz@cis.highline.ctc.edu
Last Update December 18, 1999