I have recently encountered a class which provides pretty much every single-character as a constant,constant; everything from COMMA to BRACKET_OPEN. Wondering whether this was necessary,necessary; I read an "article" which suggests that it may be helpful to pull single-character literals into constants. So, I'm skeptical...
The main appeal of using constants is they minimize maintenance when a change is needed. But when are we going to start using a different symbol than ',' to represent a comma?
The only reason I see for using constants instead of literals is to make the code more readable. But is city + CharacterClass.COMMA + state (for example) really more readable than city + ',' + state?
For me the cons outweigh the pros, mainly that you introduce another class and another import. And I believe in less code where possible. So, I'm wondering what the general consensus is here.