halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeena to Programmer [email protected]English • 2 years ago

A lot of YAML

jemmy.jeena.net

message-square
78
fedilink
996

A lot of YAML

jemmy.jeena.net

Jeena to Programmer [email protected]English • 2 years ago
message-square
78
fedilink
  • @[email protected]
    link
    fedilink
    26•2 years 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

    • @[email protected]
      link
      fedilink
      14•2 years 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
        link
        fedilink
        11•2 years 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

      • @[email protected]
        link
        fedilink
        English
        4•
        edit-2
        12 days ago

        deleted by creator

        • @[email protected]
          link
          fedilink
          2•2 years ago

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

          • @[email protected]
            link
            fedilink
            English
            1•
            edit-2
            12 days ago

            deleted by creator

            • GTG3000
              link
              fedilink
              1•2 years ago

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

              • @[email protected]
                link
                fedilink
                English
                1•
                edit-2
                12 days ago

                deleted by creator

      • @[email protected]
        link
        fedilink
        2•2 years 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 [email protected]

[email protected]

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: [email protected]

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
  • 620 users / day
  • 3.44K users / week
  • 8.91K users / month
  • 18.3K users / 6 months
  • 26.9K subscribers
  • 1.82K Posts
  • 66.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org