Best Practices for Used-Defined Types
This topic provides best practices to apply when working with user-defined types.
For more information on working with user-defined types, see Manage User-Defined Types.
Object Orientation
-
Create user-defined types based on object-oriented principles. Categorize your data models into types (objects). Doing so will make your project easier to maintain and easier for others to understand, and will also simplify and reduce coding requirements.
Naming Conventions
-
The recommended naming convention for a user-defined type is Upper camelCase, for example, SubAccount and ProductCategory.
-
The recommended naming convention for a property of a user-defined type is lower camelCase, for example, zipCode and address.