Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeena@jemmy.jeena.net to Programmer Humor@programming.devEnglish · 1 year ago

A lot of YAML

jemmy.jeena.net

message-square
83
fedilink
961

A lot of YAML

jemmy.jeena.net

Jeena@jemmy.jeena.net to Programmer Humor@programming.devEnglish · 1 year ago
message-square
83
fedilink
  • mkhopper@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    1 year ago

    It isn’t “bad”, as it does have a purpose. It’s just fucking annoying to work with.

    https://docs.platform.sh/learn/overview/yaml/what-is-yaml.html

    • Michal@programming.dev
      link
      fedilink
      arrow-up
      16
      arrow-down
      1
      ·
      1 year ago

      How’s it annoying? It’s easier to edit by hand than json as it allows for comments and there’s no trailing comma errors. I prefer it any day over json.

      • magic_lobster_party@kbin.social
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        There’s a lot of foot guns in YAML. The specification is way more complicated with hidden obscurities. JSON specification is just 5 diagrams. YAML speciation on the other hand is an 86 page pdf, so there’s more room for nasty surprises (which is not a thing you want in configuration files).

        I’ve also seen many people struggle more than they need to with the yaml indentation.

        I think the only upside to yaml is that it allows for comments, but other than that JSON all the way.

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

      • The Giant Korean@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        The fact that it allows comments is really, really handy. I used to be a JSON advocate until I realized this one useful piece of info.

        • bellsDoSing@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Yeah, such a simple, but still killer feature. Really sad that JSON doesn’t support them.

          • The Giant Korean@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            I wonder how you’d even implement that. Like maybe {! At the beginning.

            • GTG3000@programming.dev
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              Most comment-aware JSON parsers I’ve seen just use standard // to delineate comment lines.

              • The Giant Korean@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                They make sense.

      • zalgotext@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        It’s just another syntax to learn. For someone who already has their head crammed full of a bunch of other syntaxes over the years, I didn’t want to learn a new one. YAML has kind of forced it’s way in anyways though.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.45K users / day
  • 4.9K users / week
  • 9.13K users / month
  • 17.2K users / 6 months
  • 3 local subscribers
  • 23.2K subscribers
  • 1.09K Posts
  • 21.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org