At what point does a config file become a programming language?

后端 未结 18 1411
清酒与你
清酒与你 2021-01-29 18:27

I have been mulling over config files and their relationship to code for a while now and depending on the day and direction of the wind my opinions seem to change. More and mor

18条回答
  •  佛祖请我去吃肉
    2021-01-29 18:42

    I have a different philosophy about config files. Data about how an application should be run is still data, and therefore belongs in a data store, not in code (a config file IMO is code). If end users need to be able to change the data, then the application should provide an interface to do so.

    I only use config files to point at data stores.

提交回复
热议问题