Question Most Common
What are the best practices of constants you followed in your project?
A
Anonymous
February 1, 2026
48
Answer
In our project, we follow strict naming and organization standards for constants to keep them consistent, readable, and easy to maintain:
- Naming Convention
- All constants use the prefix AV_, followed by uppercase letters with underscores (_) as word separators.
- Example: AV_TEST_CONSTANT
- Data Store Entity (DSE) Constants
- For Data Store Entity constants, we use the prefix AV_DSE_, followed by the table or view name.
- Example:
- Table: AV_DSE_TEST_TABLE (for table AV_TEST_TABLE)
- View: AV_DSE_VW_TEST_CASE (for view AV_VW_TEST_CASE)
- The description clearly includes both the table/view name and the corresponding CDT name for better traceability.
- Folder Organization
- Data Store Entity constants are saved in the AV DSE Constants folder.
- Stored procedure constants are saved in the AV Stored Procedure Constants folder.
- Group-related constants are saved in the AV Group Constants folder.
- Process Model-related constants are saved in the AV Process Model Constants folder.
- All other common constants are stored in the AV Constants folder or appropriate subfolders.
- Group Constants
- Group constants use the prefix AV_GROUP_
- Example: AV_GROUP_ADMIN_USERS
- Process Model Constants
- Process Model constants use the prefix AV_PM_
- Example: AV_PM_USER_ONBOARDING
JuniorConstant
Loading comments...