Environment Variables Considered Harmful

If you are getting your configuration from environment variables you are in trouble. You should always use commandline parameters to make the configuration explicit. On the other hand it seems acceptable to use envrionment variables as default values for those parameters.

To rephrase it: If you have dependencies make them as obvious as your programming model allows you to. Beware of side effects. And Death* to all the motherfuckers using non-constant static fields in java programs!

*) read unemployment


Posted

in

,

by

Tags:

Comments

One response to “Environment Variables Considered Harmful”

  1. Arne Avatar

    Tsts, angry young man, watch your language. You’re really getting very… say, explicit in your latest Tiraden.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.