What is the best file format for configuration file? - eviltoast
  • Carlos Solís@communities.azkware.net
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Agreed. YAML is a pain to edit manually, to ensure that all the tabulation is correct and the parser does not choke. JSON is passable, but you must be mindful about the brackets. XML is too verbose and duplicative. INI files are just good enough.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      That’s why I like TOML. It’s basically INI, but it has more structural features if you need them. Most of the TOML files I use look just like ini files.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      YAML is fine if you use a formatter. JSON’s ok to read but a pain to write imo. INI if it’s simple.