.yaml, .toml, etc?

  • simonced@lemmy.one
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    A lot of good answers but I would add one note:

    • use a format that supports comments, and JSON is not one of those…
          • sfera@beehaw.org
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Don’t worry, I wouldn’t do things like this in JSON. Nevertheless, it can be very useful to have comments along with configuration values, for example to explain the actual values (not their purpose) and why they were chosen. That’s information you can’t add to the code which processes the values.