Problem Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is […]
Tag: constants
Looking for a better way to define and use constants
Problem In a custom Ant task, I have the following constants: private static final String _REVISION = “.revision”; private static […]
Class to simulate enums in PHP
Problem I have been reading this thread on Stack Overflow about simulating enums in PHP and it seems that the […]
Reading of named settings from the XML
Problem Usually it is a good style in Java to create a named constant for a string (and other) hardcoded […]
Best practice for Constant Class in Java
Problem I create a constant class by looking at some of the best practices described here in stackoverflow. Many of […]
Storing the API endpoints in a Pythonic way
Problem I am currently trying to create an API-wrapper. For that, I connect to the endpoint (for example https://host.example.com/api/accounts/open) with […]
List of path constants
Problem I have a file called paths.php which is the first file that loads on every page request. I read […]
Dynamically generating Strings (or other variables)
Problem I’ve got a Python script which is meant to launch several other shell scripts with the appropriate setup and […]
Using a final class for string constants
Problem I want to use something like Setting.RES_WIDTH in my code without the need for a getter function (i.e.: custom […]
Managing fault types
Problem I have a FaultType enum with more than 100 members: public enum FaultType { FaultType1, FaultType2, FaultType3, FaultType4, FaultType5, […]
- 1
- 2