There are 300+ Constant in my application but i need to filter the Env specific Constant .
How can i do that
Discussion posts and replies are publicly visible
I prefix them with ENV_
Mathieu Drouin said:I prefix them with ENV_
that's a good idea, and i'd further suggest that for those folks (like me) who would need to keep existing project-specific and/or app-specific prefixes in place, then the "ENV_" part could be added as a "secondary prefix" within the constant name, like just after the app prefix - i'd be tempted to make it slightly longer to be more specific, like "ENVSPEC_" or something, so the whole thing might look like i.e. "MYAPP_ENVSPEC_CONSTANT_NAME_HERE"
Should have been more specific, I do prefix with the app name
MYAPP_ENV_CONSTANT_NAME_HERE