Skip to main content Accessibility help
×
Hostname: page-component-cd9895bd7-7cvxr Total loading time: 0 Render date: 2024-12-24T17:38:33.662Z Has data issue: false hasContentIssue false

B - Rule List

Published online by Cambridge University Press:  05 December 2011

Walter Spector
Affiliation:
Silicon Graphics, Inc., Fremont, California
Get access

Summary

This appendix provides the user with a complete list of all the guidelines contained in the book. They are listed in the order of their appearance and grouped by chapter. The page on which each rule can be found in parentheses following the rule.

Chapter 2. General Principles

  1. 1. Write programs that are clear to both the reader and the compiler. (3)

  2. 2. Write programs that can be efficiently tested. (4)

  3. 3. Write programs that will scale to different problem sizes. (5)

  4. 4. Write code that can be reused. (6)

  5. 5. Document all code changes, keeping a history of all code revisions. (6)

Chapter 3. Formatting Conventions

  1. 6. Always use free source form. (9)

  2. 7. Adopt and use a consistent set of rules for case. (10)

  1. 7.1 Use lowercase throughout. (11)

  2. 7.2 Capitalize the names of all user-written procedures. (11)

  3. 7.3 Write all named constants using uppercase letters. (12)

  4. 7.4 Begin the name of all data entities using a lowercase letter. (12)

  1. 8. Use a consistent number of spaces when indenting code. (13)

  2. 9. Increase the indentation of the source code every time the data scope changes. (13)

  3. 10. Indent the block of code statements within all control constructs. (14)

  4. […]

Type
Chapter
Information
Modern Fortran
Style and Usage
, pp. 308 - 320
Publisher: Cambridge University Press
Print publication year: 2011

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×