Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This isn't either/or - you can have a nice preferences GUI and a sensible yaml or toml config file backend.


Except 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.


Yes - 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.


A 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: