BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Application config files
- Subject: [Discuss] Application config files
- From: slitt at troubleshooters.com (Steve Litt)
- Date: Sat, 13 Jul 2019 20:14:37 -0400
- In-reply-to: <20190712211615.GB31101@bladeshadow.org>
- References: <CAEvgogF9s200fVh_HaO2dHnmVV94vJ4gSSaWWOCj+YwN1mFMGw@mail.gmail.com> <20190712174001.zf5gvwbpfsqlkqjh@randomstring.org> <20190712140720.38215f7c@mydesk.domain.cxm> <20190712211615.GB31101@bladeshadow.org>
On Fri, 12 Jul 2019 16:16:15 -0500 Derek Martin <invalid at pizzashack.org> wrote: > On Fri, Jul 12, 2019 at 02:07:20PM -0400, Steve Litt wrote: > > On Fri, 12 Jul 2019 13:40:01 -0400 > > Dan Ritter <dsr at randomstring.org> wrote: > > > > > Jerry Feldman wrote: > > > > I have an application that I wrote where I am using a .ini style > > > > file for config. I chose that as an afterthought but maybe JSON, > > > > YAML, or TOML might be better formats. > > > JSON is out from the get-go: It's not meant to be read and written > > by humans. > > I largely disagree. If it's currently in INI format the equivalent > JSON should generally be perfectly human-readable, e.g.: > {"thingy": {"name": "foo","ip": "10.1.2.3", "value": 1, "live": true, "notes": null}} Your assertions (not copied here) about Python writing beautful json is true, but humans, not so much. One could easily write a Python json beautifier to help, but I still think complex json is hard for a human to edit. I think about 20 lines of Python could turn an .ini file into a list of dicts. SteveT Steve Litt July 2019 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques
- Follow-Ups:
- [Discuss] Application config files
- From: johnhall2.0 at gmail.com (John Hall)
- [Discuss] Application config files
- References:
- [Discuss] Application config files
- From: gaf.linux at gmail.com (Jerry Feldman)
- [Discuss] Application config files
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] Application config files
- From: slitt at troubleshooters.com (Steve Litt)
- [Discuss] Application config files
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Application config files
- Prev by Date: [Discuss] Application config files
- Next by Date: [Discuss] Need about an hour of consulting...
- Previous by thread: [Discuss] Application config files
- Next by thread: [Discuss] Application config files
- Index(es):