this post was submitted on 15 Aug 2023
42 points (100.0% liked)

Experienced Devs

3943 readers
1 users here now

A community for discussion amongst professional software developers.

Posts should be relevant to those well into their careers.

For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:

founded 1 year ago
MODERATORS
 

.yaml, .toml, etc?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 16 points 1 year ago (4 children)

JSON by a mile. I hate the YAML plague, it’s some of the most unintuitive syntax I’ve seen and yet it’s everywhere in DevOps/SysOps.

[–] [email protected] 9 points 1 year ago (1 children)

The only thing that really annoys me about JSON is that it doesn't allow comments.

[–] [email protected] 9 points 1 year ago

JSON5, bay-beee

[–] [email protected] 6 points 1 year ago

GitHub Actions and Azure DevOps had me hating on YAML pretty quickly

[–] [email protected] 4 points 1 year ago (2 children)

Yeah, any language in which whitespace count is semantically significant can go suck fat nards.

[–] [email protected] 8 points 1 year ago (1 children)

I mean, a valid JSON is a valid YAML

[–] [email protected] 6 points 1 year ago

I hate that you're correct lmao

[–] [email protected] 8 points 1 year ago (1 children)

Not sure whether fantastic troll or just no exposure to Python.

Either way....I'm here for it.

[–] [email protected] 8 points 1 year ago (1 children)

Neither, I've written plenty of Python and I know how useful it can be. However, as someone who is neurospicy, I find languages that have semantically l significant white space to be frustrating to read.

Sure, there are tools to help with it. Sure, they help. But they don't replace how much more useful curly braces are at defining scope.

[–] [email protected] 2 points 1 year ago

You’re not wrong. Having to figure out which element is borked in a yaml file is not great. And the implementation using yaml is all over the place, so even though tools do exist, they’re mediocre at best.

But, to be fair, Python has always done the same to me. As a fellow Neuro-spicy (and with a background in Java and C# and JavaScript), although the tools are better to point you in the right direction, significant white space (or indentations) are significant white space (or indentations).🤷‍♂️

[–] [email protected] 1 points 1 year ago

YAML works better with git than JSON, but so much config work is copy and pasting and YAML is horrible at that.

Having something where changing one line doesn't turn into changing three lines, but you could also copy it off a website would be great.