2

Scripting Language as Config

Posted by Anonymous 7 hours ago
2
3

Nowadays, people use Toml/Yaml as configuration.

Understandable, but I really miss when app can be configured with real scripts:

- Neovim uses Lua

- Emacs uses some kind of LISP

Using a real scripting language allows us to create functions, declare logic, etc. Plus, we have linter/autocompletion by default, no need to reinvent anything.

Why is this not popular?

Comments (3)

Want to leave a comment?

Sort by: Best
1
Anonymous fa25c64f

the scripting language configs can be used for some very evil things

YAML or JSON are safer

reply permalink report gild save
1
Anonymous 2d1a715a

Yes, but as long as you keep the configs access to yourself, things will be just okay.

As for YAML, you probably see this often:

```

livenessProbe:

exec:

command:

- cat

- /tmp/healthy

```

At the end, because of flexibility lacking, some YAML specs eventually let you write shell scripts.

reply permalink report gild save
1
Anonymous fa25c64f

That's all fine. But in any serious project, at some point, you'll have the computer security guys come over and say "this is risky, do it the other, safer way".

reply permalink report gild save