4 ms·
This isn't either/or - you can have a nice preferences GUI and a sensible yaml or toml config file backend.
by nikau 4y ago
This isn't either/or - you can have a nice preferences GUI and a sensible yaml or toml config file backend.
- pjmlp 4y agoExcept on Linux usually most environments stop at the config file part. And if a GUI tool happens to exist, it isn't kept in sync with the file format.
- nikau 4y agoYes - ideally there should be a standard library for this. There is no reason the GUI cant update the config file and refresh from it when it updates.
- bee_rider 4y agoA convention for writing JSON, YAML, or whatever config files that standardized types of options, their default, and something about their types (is it a toggleable boolean, a bounded continuous value, an integer, etc etc) could be nice. It might be possible to provide enough info automatically generate the GUI (draw the first as a button, the second as a slider, and the third as a number box), and that sort of info would be helpful to have if you were writing the file by hand anyway.