Naming: ordering multiple names

In case a name includes multiple names of different scopes, it must be ordered from the larger scope to the smallest one. Thinking about how you would organize it in a folder hierarchy.

For example, you have multiple configuration files in your project myproj:

  • for different environments (dev for development, prod for production)
  • for different components (db for a database, app for an application)

The best practice, in this case, would be to choose the format:

project_component_environment

The list of files would be like this:

myproj_app_dev
myproj_app_prod
myproj_db_dev
myproj_db_prod