Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Comments are more important than code
Raskin J. Queue3 (2):64-ff,2005.Type:Article
Date Reviewed: Aug 15 2005

This well-written paper highlights the importance of thoroughly documenting code, and exposes the limitations and drawbacks of current practices like self-documenting code, automatic documentation generators, in-line comments, and so on.

Self-documenting code encourages the use of meaningful variable names, thereby marginally improving the readability of code. Documentation generators do not possess the insight of the programmer who wrote the code, and fail in capturing the finer details and nuances. In-line comments fail to achieve the desired results because of their “forced brevity,” as programmers must limit the documentation to a few lines because of constraints of the programming environment.

None of the existing practices give enough importance to proper code documentation, which, in the author’s opinion, should be very detailed, thorough, and address topics like why the program is written in a particular way, and why a specific approach is chosen when several others are available.

Good documentation should be readable on its own, with bits of code showing how the design is implemented. The author teams up with Donald Knuth, who founded literate programming (LP), to buttress his views. LP is a methodology that combines a programming language with a documentation language, thus making them more robust, portable, and maintainable. The author and Knuth advocate that programs be addressed more to humans than to computers.

Raskin further explains the need for the thorough use of internal code documentation (comments), not only for improving understandability of the code, but also for improving software quality, maintainability, and development productivity. This article is a must-read for all software professionals.

Reviewer:  Alexis Leon Review #: CR131663 (0602-0163)
Bookmark and Share
  Reviewer Selected
Featured Reviewer
 
 
Code Inspections And Walk-Throughs (D.2.5 ... )
 
 
Coding Tools and Techniques (D.2.3 )
 
 
Distribution, Maintenance, and Enhancement (D.2.7 )
 
 
Document Preparation (I.7.2 )
 
 
General (D.1.0 )
 
Would you recommend this review?
yes
no
Other reviews under "Code Inspections And Walk-Throughs": Date
Limitations of empirical testing technique knowledge
Juristo N., Moreno A., Vegas S. In Lecture notes on empirical software engineering. River Edge, NJ: World Scientific Publishing Co, Inc., 2003. Type: Book Chapter
Oct 28 2003
Combining data from reading experiments in software inspections
Wohlin C., Petersson H., Aurum A. In Lecture notes on empirical software engineering. River Edge, NJ: World Scientific Publishing Co, Inc., 2003. Type: Book Chapter
Dec 2 2003
Using multiple adaptive regression splines to support decision making in code inspections
Briand L., Freimut B., Vollei F. Journal of Systems and Software 73(2): 205-217, 2004. Type: Article
Feb 23 2005
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy