Python Forum
configuration formats / languages
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
configuration formats / languages
#4
I'll take the opposite position: I hate json.  It's better than xml, but that's not a very high bar.  They're both read-only languages.

In my opinion, if a config file is meant to be edited by humans, it should be fairly loose in what it allows, and be pretty obvious on how to structure it.  To that end, I like yaml and toml.  Even .ini files aren't bad.

json just has too many weird quirks which makes it unsuitable for editing by hand, like how it's illegal for the last element in a list to end in a comma. 
# invalid json:
[
    "item1",
    "item2",
    "item3",
]
Reply


Messages In This Thread
configuration formats / languages - by Skaperen - Sep-18-2017, 06:19 AM
RE: configuration formats / languages - by wavic - Sep-18-2017, 10:15 AM
RE: configuration formats / languages - by Skaperen - Sep-19-2017, 05:07 AM
RE: configuration formats / languages - by nilamo - Sep-28-2017, 07:22 PM
RE: configuration formats / languages - by Skaperen - Sep-29-2017, 04:33 AM
RE: configuration formats / languages - by nilamo - Sep-29-2017, 03:06 PM
RE: configuration formats / languages - by Skaperen - Oct-02-2017, 12:11 AM
RE: configuration formats / languages - by wavic - Sep-29-2017, 08:14 PM
RE: configuration formats / languages - by wavic - Oct-02-2017, 12:49 AM
RE: configuration formats / languages - by Skaperen - Oct-02-2017, 07:16 AM
RE: configuration formats / languages - by nilamo - Oct-02-2017, 03:55 PM
RE: configuration formats / languages - by Skaperen - Oct-03-2017, 01:21 AM
RE: configuration formats / languages - by nilamo - Oct-03-2017, 05:08 AM
RE: configuration formats / languages - by Skaperen - Oct-03-2017, 09:01 AM
RE: configuration formats / languages - by sjdv1982 - Oct-14-2017, 09:27 PM
RE: configuration formats / languages - by Skaperen - Oct-15-2017, 02:05 AM
RE: configuration formats / languages - by sjdv1982 - Oct-15-2017, 12:42 PM
RE: configuration formats / languages - by Skaperen - Oct-16-2017, 02:30 AM
RE: configuration formats / languages - by wavic - Oct-16-2017, 03:43 AM
RE: configuration formats / languages - by Skaperen - Oct-16-2017, 08:14 AM
RE: configuration formats / languages - by wavic - Oct-16-2017, 10:55 AM
RE: configuration formats / languages - by Skaperen - Oct-17-2017, 02:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python vs low level languages, (say C++) astral_travel 1 307 Apr-07-2024, 01:22 AM
Last Post: PyDan
  different programming languages/words in text editors alok 7 3,598 Jul-05-2021, 03:46 PM
Last Post: alok
  Stanza: A Python NLP Library for Many Human Languages, by the Stanford NLP Group buran 0 1,802 Mar-26-2020, 05:36 PM
Last Post: buran
  Suggestions for a machine learning model for invoice processing multiple languages? animeshsarraf 1 2,168 May-26-2019, 04:43 AM
Last Post: heiner55
  Interaction between different programming languages Krookroo 3 3,959 Sep-23-2017, 08:50 PM
Last Post: Krookroo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020