Question Most Common
What are the best practices of constants you followed in your project?
A
Anonymous
February 1, 2026

Answer

In our project, we follow strict naming and organization standards for constants to keep them consistent, readable, and easy to maintain:

  1. Naming Convention
  2. All constants use the prefix AV_, followed by uppercase letters with underscores (_) as word separators.
  3. Example: AV_TEST_CONSTANT


  1. Data Store Entity (DSE) Constants
  2. For Data Store Entity constants, we use the prefix AV_DSE_, followed by the table or view name.
  3. Example:
  4. Table: AV_DSE_TEST_TABLE (for table AV_TEST_TABLE)
  5. View: AV_DSE_VW_TEST_CASE (for view AV_VW_TEST_CASE)
  6. The description clearly includes both the table/view name and the corresponding CDT name for better traceability.


  1. Folder Organization
  2. Data Store Entity constants are saved in the AV DSE Constants folder.
  3. Stored procedure constants are saved in the AV Stored Procedure Constants folder.
  4. Group-related constants are saved in the AV Group Constants folder.
  5. Process Model-related constants are saved in the AV Process Model Constants folder.
  6. All other common constants are stored in the AV Constants folder or appropriate subfolders.


  1. Group Constants
  2. Group constants use the prefix AV_GROUP_
  3. Example: AV_GROUP_ADMIN_USERS


  1. Process Model Constants
  2. Process Model constants use the prefix AV_PM_
  3. Example: AV_PM_USER_ONBOARDING


JuniorConstant
Loading comments...