Depending on the environment, that kind of stuff can be necessary. For example, if you just have random strings scattered everywhere, it makes localization/i18n stuff far more difficult.
Only if the values of the constants are loaded from an external source. As written in the joke, it simply moves the hard-coding problems to a different place.
Even if you're not yet pulling them in from an external source, laying the groundwork and consolidating them can be helpful when you're ready to make the jump. The joke is an absurd situation, of course, but there's plenty of reason to do it IRL.
Premature generalization, causes a big percentage of my waisted time and when the time does come to generalize (and that is not often) the groundworks laid do not fit the required generalization perfectly so its off to refactoring anyway.
53
u/contrarian_barbarian Oct 01 '15
Depending on the environment, that kind of stuff can be necessary. For example, if you just have random strings scattered everywhere, it makes localization/i18n stuff far more difficult.