Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-cjp7w Total loading time: 0 Render date: 2024-06-26T00:23:20.122Z Has data issue: false hasContentIssue false

Summary

Published online by Cambridge University Press:  07 September 2010

Allan Vermeulen
Affiliation:
Ambysoft Inc., Toronto
Scott W. Ambler
Affiliation:
Rogue Wave Software
Greg Bumgardner
Affiliation:
Ambysoft Inc., Toronto
Eldon Metz
Affiliation:
Rogue Wave Software
Trevor Misfeldt
Affiliation:
Rogue Wave Software
Jim Shur
Affiliation:
Rogue Wave Software
Get access

Summary

  1. Adhere to the style of the original.

  2. Adhere to the Principle of Least Astonishment.

  3. Do it right the first time.

  4. Document any deviations.

  5. Indent nested code.

  6. Break up long lines.

  7. Include white space.

  8. Do not use “hard” tabs.

  9. Use meaningful names.

  10. Use familiar names.

  11. Question excessively long names.

  12. Join the vowel generation.

  13. Capitalize only the first letter in acronyms.

  14. Do not use names that differ only in case.

  15. Use the reversed, lowercase form of your organization's Internet domain name as the root qualifier for your package names.

  16. Use a single, lowercase word as the root name of each package.

  17. Use the same name for a new version of a package, but only if that new version is stillbinary compatible with the previous version, otherwise, use a new name.

  18. Capitalize the first letter of each word that appears in a class or interface name.

  19. Use nouns when naming classes.

  20. Pluralize the names of classes that group related attributes, static services, or constants.

  21. Use nouns or adjectives when naming interfaces.

  22. Use lowercase for the first word and capitalize only the first letter of each subsequent word that appears in a method name.

  23. Use verbs when naming methods.

  24. Follow the JavaBeans™ conventions for naming property accessor methods.

  25. Use lowercase for the first word and capitalize only the first letter of each subsequent word that appears in a variable name.

  26. Use nouns to name fields.

  27. […]

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2000

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 coreplatform@cambridge.org 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
×