Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Environment variables is exactly this: mutable global state. Envvars have some legitimate usages (such as enabling debug logging) but they should never, ever be used for configuring core functionality of programs

Doesn’t matter where configuration lives, the name itself suggests that it is by definition global mutable state, I mean that’s the whole point of it.

And it doesn’t matter if it’s used to configure core functionality (e.g feature toggles) or secondary functionality. The whole purpose is to do exactly that :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: