On 04/28/2010 10:20 AM, Stephen M. McQuay wrote: > My question is this: what is the best configuration file syntax?
When I was developing in Qt, they had a very nice API for doing config files. On Unix, it would stick INI-style files in $HOME/.config/ (or /etc/), and on Windows it would use the registry. On Macs it would use a plist (XML--yuck) in ~/Library/ somewhere. As for markup languages, I say avoid them. They are unnecessary. A structured INI file is more readable, maintainable, and can express everything you'd want in a config file. I would also avoid json. On Linux, per-user settings should now avoid dot files in favor of files in .config. That's the new standard, though the format of the files still varies. That reminds me that I want to try out libetc (http://ordiluc.net/fs/libetc/) to see if I can clean up the clutter of dotfiles in my home directory. -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
