Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Like A Duck@programming.dev to Technology@lemmy.ml · 2 years ago

What is the best file format for configuration file?

message-square
message-square
45
fedilink
33
message-square

What is the best file format for configuration file?

Like A Duck@programming.dev to Technology@lemmy.ml · 2 years ago
message-square
45
fedilink

cross-posted from: https://programming.dev/post/1743099

.yaml, .toml, etc?

  • SorteKanin@feddit.dk
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    2 years ago

    Definitely not yaml. It’s spec is horrible.

    Toml is pretty nice though.

    • richieadler 🇦🇷@lemmy.myserv.one
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 years ago

      I hate table definitions in TOML with a passion.

      I like YAML. I guess that’s because I don’t need to build parsers for it. What’s your worst complain about it?

      • SorteKanin@feddit.dk
        link
        fedilink
        arrow-up
        13
        ·
        2 years ago

        Just read this https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell

        • JonnyRobbie@lemmy.world
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          2 years ago

          Thie essentially boikls down to “quote yur shit”. Yes, it can be frustrating if a language superficially allows you to use unqoted strings with the promise that it will inteligently interprets that. It’s like parentheses in arithmetics. If you are not sure or if you are not competent in a language enough to predict the order of operations, use parentheses. The same with strings and quotes in yaml.

          • SorteKanin@feddit.dk
            link
            fedilink
            arrow-up
            1
            arrow-down
            3
            ·
            2 years ago

            … or just use another tool where you don’t even have to think about this problem.

            • richieadler 🇦🇷@lemmy.myserv.one
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 years ago

              I get that JSON is intuitive and a huge improvement over XML, but I still find it verbose.

        • richieadler 🇦🇷@lemmy.myserv.one
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 years ago

          Very educational.

Technology@lemmy.ml

technology@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !technology@lemmy.ml

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 219 users / day
  • 823 users / week
  • 2.48K users / month
  • 7.17K users / 6 months
  • 18 local subscribers
  • 37.9K subscribers
  • 4.04K Posts
  • 36.6K Comments
  • Modlog
  • mods:
  • MinutePhrase@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org