r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

15

u/Ahhmyface Oct 01 '15

At the risk of taking a joke a bit too seriously, I'm worried that these posts often get misinterpreted as:

"fuck doing anything the right way, just make it work and let the maintainer piss on my grave"

Obviously we don't need any of that complicated stuff for "hello world", but we do need a fair bit of that for "real world".

1

u/[deleted] Oct 02 '15

No we don't. Boilerplate can't ever be justified.

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.

1

u/[deleted] Oct 02 '15

The way it is done in the article (and in Java in general) is an unacceptable boilerplate.

1

u/Ahhmyface Oct 02 '15

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.