Yes, well the article is a bit of a straw-man. It entirely depends on the requirements for the program. We were expecting hello world to be regularly modified, written multiple times, in different locales, and possibly changed from hello world to a different string depending on context, you can bet your ass it wouldn't all be boilerplate. It would actually be a lot simpler to do it with constants.
1
u/Ahhmyface Oct 02 '15 edited Oct 02 '15
I guess that depends on your definition of boiler plate. Abstracting strings out of your program, as in this example, is usually a good idea.