As the title says then the question is relative simple however I cant decide whether a resource file with strings in is better than hard-coded strings… Whats your opinion?
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Main advantage is in localisation. Performance wise resources have a little more overhead but really not much of an issue.
If I am not worried at all about localisation then I would use constants (and not hard-coded strings).