• @[email protected]
        link
        fedilink
        62 years ago

        Careers Fair; 2024

        Teen: “Excuse me; how do I become a Tech Lead like you someday” Lead: “By simple luck of the draw I am the best at googling other people’s solutions to my team’s YAML config issues.”

    • andrew
      link
      fedilink
      English
      252 years ago

      Eh. Software is just data too. It’s about solving problems with systems using those systems and other systems and that’s software engineering. It’s recursive and wherever you are in the stack you’re standing on the shoulders of giants, and you’re still doing engineering. 💪

  • @[email protected]
    link
    fedilink
    English
    252 years ago

    YAML would such a nice language for config files but then it turns out that “no” is falsy and so a list of Scandinavian countries turns from

    • se
    • fi
    • no

    into

    • “se”
    • “fi”
    • False

    I wish there was like a JSON5 equivalent for YAML that just reduces its scope lol
    (and no, TOML also looks ugly :P)

    • synae[he/him]
      link
      fedilink
      English
      102 years ago

      This is definitely a failing of yaml. Though, I feel that generally it’s the sort of thing you learn once the hard way, then it sticks with you pretty well.

      Also I’m glad there are more anti-toml folks are out there, feels like I’m taking crazy pills when people say it is “simple” and “elegant”. IMO it’s uglier than old-school ini format - at least it’s more strictly defined but that doesn’t really sway me to convert

      • @[email protected]
        link
        fedilink
        English
        32 years ago

        Which is better for structured data?

        • elegant, human readable, indentation sensitive language that’s great for deep nesting but has some weird idiosyncrasies with some dynamically typed parsers being too smart for their own good
        • glorified ini

        The choice is clear

      • @[email protected]
        link
        fedilink
        22 years ago

        If by simple you mean “can’t count from 1 to 10 in a loop” and by elegant you mean “easier to understand than a one line perl script” then sure…

  • SavvyWolf
    link
    fedilink
    English
    192 years ago

    You know, at this point I’ve been writing YAML on and off for a while now. You’d think I actually understand the syntax by now, but I don’t.

    • @[email protected]
      link
      fedilink
      62 years ago

      That’s because it is absolutely terrible. It is the first serious/real “language” I have encountered since Cobol where indent level has functional meaning. This is not good company to be in.

        • GTG3000
          link
          fedilink
          72 years ago

          Python has stricter rules about what can be cludged together and how.

          Yaml is… Kind of nebulous, which is not a good thing for a data serialization format.

          • @[email protected]
            link
            fedilink
            12 years ago

            Yeah not a fan of YAML either. I simply don’t see the benefit of getting rid of delimiters and replacing them with indentation. Yes, it does save several bytes, which might be important if you measure space in kilobytes I guess. It does provide cleaner files which may or may not be more readable.

            It does not provide any advantages in parsing complexity. It does not provide any protection against typos.

            I guess the same can be said of python, which forces indentation and therefore readable code formatting. Which is a problem that does not exist since the invention of code formatters and linters.

            I like python for what it does but delimiters are actually useful in terms of readability. They provide an extra hint that the text you’re about to look at conforms to a specific structure.

            • GTG3000
              link
              fedilink
              12 years ago

              Oh god, parsing complexity. I actually tried writing a YAML parser in my free time before and boy was that not worth the headache. So many little things that complicate parsing and are ignored by majority of users!

              I really like python, but I can agree that it’s no-delimiters style can be… Confusing at times. I definitely had to hunt down bugs that were introduced by wrong indentation. That and the way it handles global/local variables, mostly.

              I do appreciate not having to enclose every key in “”, and being able to copy values - but if we want that kind of logic making our configs, why not just switch to writing configurations in Lua? It certainly has less footguns than YAML and it has the niceties like “I can just write {key = "value"} instead of {"key": "value"}”.

  • TheOPtimal
    link
    fedilink
    ქართული
    62 years ago

    Fucking hate YAML. With every fibre of my being. YAML needs tO GTFO

    • TJA!OP
      link
      fedilink
      62 years ago

      Not sure, how much fun there is in that fact