Generic Programming Recommendations


(Based on 21 years of teaching computer programming.)
Page Last modified: 9 October 2003


  1. How to approach the task:


  2. Try to develop a simple, consistent style for handling tasks

  3. The classic style of programming is to divide the program into simple, self-contained tasks.

  4. Always strive to make parts of the code general.

  5. Avoid name conflicts with existing subprograms, in line functions, intrinsic functions, etc.

  6. Take the time to add comment lines

  7. You may want to avoid using local conveniences in order to develop habits and to have code that are transportable to other computing environments.

  8. Other advice:


  9. When debugging your program, take advantage of the generalities you have built in and run a streamlined version of the program.

  10. When debugging a program, produce a compiled listing.


Back to ATM 150 homepage

Storage: (ignore below)

ncargf77 -V -show xref -check bounds template.for