• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Welcome to ActionScript 2.0 > Code Hints and Naming Conventions

Code Hints and Naming Conventions

Even though commenting is very helpful, and is good coding practice, sometimes you take a variable for granted and think that anyone will be able to tell what that variable is with or without a comment. And that may be true if you practice good naming conventions.

When naming variables, instances, functions, methods, and events, it is important to use names that can be easily understood. For instance, if you have a variable that represents the beginning horizontal position of an object on the stage, which of the following would you be more apt to recognize as what it is?


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint