June 2004
Intermediate to advanced
992 pages
37h 55m
English
Comments done well can greatly enhance a program's readability; comments done poorly can actually hurt it. The layout of comments plays a large role in whether they help or hinder readability.
For details on other aspects of comments, see Chapter 32.
Indent a comment with its corresponding code. Visual indentation is a valuable aid to understanding a program's logical structure, and good comments don't interfere with the visual indentation. For example, what is the logical structure of the routine shown in Example 31-58?
Read now
Unlock full access