3 ms·
Or, to avoid sooner or later falling into Greenspun's Tenth Rule, just go immediately to Lua, which actually evolved out of a configuration language (https://ww
by akavel 6y ago
Or, to avoid sooner or later falling into Greenspun's Tenth Rule, just go immediately to Lua, which actually evolved out of a configuration language (https://www.lua.org/history.html https://www.lua.org/history.html), so it has syntax & features that are quite friendly for writing configs.
- rendaw 6y agoI'd never heard of Greenspun's tenth but that's good to know! I had a personal theory that all program configuration interfaces eventually become programming languages (poorly) and maybe this fits in there.
- dimitrios1 6y ago> I had a personal theory that all program configuration interfaces eventually become programming languages (poorly) and maybe this fits in there. This is absolutely true. Another recent high profile example I can think of is HCL with terraform.
- akavel 6y agoI actually just stumbled upon an article where someone went through HCL and finally landed at Lua: http://dnaeon.github.io/choosing-lua-as-the-ddl-and-config-language/ http://dnaeon.github.io/choosing-lua-as-the-ddl-and-config-l...
- lenkite 6y agoLua tables are great for nested configurations like layouts.
- fit2rule 6y agoLua is the best.