Skip to content

Comment on Environment Variables: For and Against

Comments

I thought it was normal practice not to export environment variables so they are only available to a particular process.

I think env variables are bad for passing info between processes, but are good for loading different configurations into processes consistently.

I always load my env from some config file, but I like that the apps don’t care how config gets stored. I like the abstraction of the process not needing to be aware of how config is managed.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.