Any Java devs that can point me at best practices for global constants? I've a Spring app I've inherited, have to compare some values at runtime against magic strings (customer codes) for some conditional logic, but don't want to embed them deep in the API.
(I'm not a Java developer by trade and haven't really touched it in 20 years.)
May you could put the constant values in a .properties file or get them from a database, so you can change them while the application is running without the need to recompile and redeploy.
A safe, social, virtual space for anyone interested in mental health and its issues. Whether you're a service user, someone with lived or living experience or a mental health professional, feel free to join, hang out and chat about anything.