Follow the best practices below on using packages for code organization:
Use packages to organize and structure your projects codebase.
Packages are the standard for OOP-based applications. Packages represent logical groupings of related ActionScript and MXML files in the form of classes. The use of packages and classes is fundamental to object-oriented programming.
To continue with community standards, use the following practices for naming your packages:
Use lowerCamelCase.
For example: com.seantheflexguy.stringUtils
Begin the package name with the top-level domain (TLD) of the application's owner:
for example, com, net, us;
then use the application owner's name:
for example: seantheflexguy, adobe;
then the project name:
for example: burrow;
then the logical grouping of related code files:
for example: utils, components, or whatever is appropriate.
Here's an example of a package name using this convention:
com.seantheflexguy.burrow.view
No comments:
Post a Comment