I am sure this has been asked before, but in this example I am curious as to what usefulness others can see in separating constants to this degree:
public class CoreStringConstants
{
// Common strings
public const string SPACE = " ";
public const string PERIOD = ".";
public const string COMMA = ",";
public const string COLON = ":";
public const string SEMI_COLON = ";";
public const string HYPHEN = "-";
public const string UNDER_SCORE = "_";
public const string LEFT_BRACKET = "(";
public const string RIGHT_BRACKET = ")";
public const string LEFT_SQUARE_BRACKET = "[";
public const string RIGHT_SQUARE_BRACKET = "]";
public const string LEFT_CURLY_BRACKET = "{";
public const string RIGHT_CURLY_BRACKET = "}";
public const string PIPE = "|";
public const string CIRCUMFLEX = "^";
public const string ASTERISK = "*";
... Really?
Is there really any benefit to separating these kinds of string constants from your code?
When is the character used for ASTERISK going to change in the foreseeable lifetime of the application?