Programming With Style 

Part 2:  

The Principles of Programming Style

The first part of this handbook dealt with programming guidelines and tools for maximizing code manageability, quality, modularity, and user-friendliness. With a solid understanding of the necessity of these programming guidelines, we will now turn our attention to the derivation of a basic set of standards for writing readable code in C/C++, Smalltalk, PC Assembler, Scheme, and Lisp.

Because students are inquisitive by nature, always asking "why?" things are done a certain way, Part 2 will begin with a look at the psychological reasoning behind many points of coding style. By studying these psychological principles we can better appreciate how people learn and retain information, as well as reasons why specific elements of style are preferred over others.

Contents of Part 2

  1. Psychological Principles
  2. General Principles
  3. C/C++ Style
  4. Smalltalk Style
  5. Assembler Style
  6. Scheme/Lisp Style