Friday, January 29, 2010

Helpful Hints: Part 1

  1. General Naming: Use abbreviations consistently. An abbreviation must clearly stand for only one thing and Use Descriptive Terms so you can easily follow and remember.
  2. Avoiding Reserved Words: Don't use reserved terms for the names of your Variables, otherwise it may cause errors.
  3. Naming Variables: Give each Variable a Unique Name and make sure not to use an obsolete code.
  4. Naming Constants: Constants should be Upper Case
  5. Naming Boolean Variables: Start Boolean variables with the word "is"
  6. Functions and Methods: Use descriptive names, Start function and method names with a lowercase letter, Describe what value is being determined.
  7. Naming classes and objects: Begin with a capital letter
  8. Naming Packages: Put Prefixes in Lowercase Letters
  9. Naming Interfaces: Start Interfaces with a capital "I" Makes it easier to distinguish
  10. Naming Custom Components: Be Consistent

No comments:

Post a Comment