108
Don't require people to change 'source code' to configure your programs
(utcc.utoronto.ca)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I agree with this, but there are ways to make your "source code" not a file that you will modify.
For instance you can have a file that's imported/included for configuration purposes that you yourself don't author... And I think that's okay.
One of my favorite configuration languages for Python projects is actually just Python. It's remarkably nice. It's like having a YAML file you can script.
The line between configuration is very messy anyways. So many projects abuse YAML as a domain specific language. Looking at you, HomeAssistant and ESPHome!
I assume less custom configs are better, but I've seen Ansible yaml files that are just convoluted bash scripts written in yaml, which makes them even more convoluted.
Yeah that occurred to me as well. Then I immediately think that maybe we need ☆one more language☆ to fix this. And then I remember that one xkcd comic...