Tips_namingconventions   >   Library Names

Library Names

Keep your library names short but meaningful. Think of each library as a module that has responsiblilty for a certain area of your application, its domain. The library name should communicate the module's domain.

Avoid changing a library name because doing so will break code in the classes in other libraries which access the classes in the library who's name you changed.

By default the library name is the same name as the library's file name, without the file extension. After creating a new library you should immediately set the $defaultname property of the library. Setting the library's default name prevents the name from being changed if you or the user changes the library's file name.