4 ms·
> Configuration files tell a program what to do The source code tells a program what to do. Configuration tells the program about its environment.
by BurningFrog 7y ago
> Configuration files tell a program what to do
The source code tells a program what to do.
Configuration tells the program about its environment.
- thayne 7y agoit depends on the application. For things like build systems, ci systems, infrastructure as code, and even things like reverse proxies and webservers, the config definitely DOES tell the program what to do. And in those cases I think a full programming language makes more sense. For programs like say, a word processor, where the config really is just the environment, and is suffiently simple, something like yaml is sufficient. but please use a format that supports comments if it will be read or written by humans.
- BurningFrog 7y agoI should know more about those uses cases to say anything about it. My hunch is that it would be good with a different term than "config" for those things.