This might be a stupid question and a tangent, but what does he mean by: "don’t use raw strings as constants"
public String getDescription() {
return “some constant”;
}
Versus public String getDescription() {
return FOO_DESCRIPTION;
}
it’s a fairly weak example but you get the idea.So you can refactor/find things that use Foo easier than 'foo'. You would probably get editor support for the constant "Foo" and not for the string "foo".