I'm not sure, if we, as a humanity, can do much here.
You have 2 choices:
- Use a "0-config" solution. You sacrifice control, efficiency and a lot more.
- You write configuration. In my opinion, the best language for configuration that humanity has come up with is YAML. Yes, it's not ideal, but it's expressive and (compared to alternatives), very readable. Compared to real programming languages, it lacks some of the goodies like autocompletion, validation, etc. Stacktape has a VScode extension for that. Also, you can write your config using Typescript: https://docs.stacktape.com/user-guides/writing-config-in-typ...
If you want a "quick-start" solution, we have a lot of those in our docs. Also, we are working on an interactive CLI "tour" that will "bootstrap" the configuration for you (with some sane defaults).
Edit: We are actively looking for a better and easier solution. If you have a suggestion, I will be very happy to discuss it.
I quite like configuration written in Python. Clearly very different beast; but:
1. It’s not YAML (which I agree is dreadful after about 10 LOC)
2. You’re not fighting it. Want to condition the config on something? Just code that up, no need to introduce custom options etc.
3. A basic setup is barely more work than filling up a YAML file, it might even look like basically key=value kind of file.
4. Easier to structure. A big config file in YAML can only ever be a single large file. In Python/code, if you grow a big and complex config, you split it like you would with any regular code.
It is of course less safe to parse a config file than it is to read a YAML one (I guess?) but if you’re then running user code anyway then it probably is no additional security risk.
Clearly, can replace Python with any other language.
You have 2 choices:
- Use a "0-config" solution. You sacrifice control, efficiency and a lot more.
- You write configuration. In my opinion, the best language for configuration that humanity has come up with is YAML. Yes, it's not ideal, but it's expressive and (compared to alternatives), very readable. Compared to real programming languages, it lacks some of the goodies like autocompletion, validation, etc. Stacktape has a VScode extension for that. Also, you can write your config using Typescript: https://docs.stacktape.com/user-guides/writing-config-in-typ...
If you want a "quick-start" solution, we have a lot of those in our docs. Also, we are working on an interactive CLI "tour" that will "bootstrap" the configuration for you (with some sane defaults).
Edit: We are actively looking for a better and easier solution. If you have a suggestion, I will be very happy to discuss it.