.yaml, .toml, etc?

6 points

It really depends. I usually prefer json. It’s easily understandable from humans and from machines, it doesn’t depends on indentation and above everything else I like it very much 🤣

permalink
report
reply
9 points

The one with a validator provided to the user.

permalink
report
reply
16 points

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.

permalink
report
reply
9 points

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

permalink
report
parent
reply
9 points

JSON5, bay-beee

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
8 points

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

Either way…I’m here for it.

permalink
report
parent
reply
8 points

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.

permalink
report
parent
reply
8 points

I mean, a valid JSON is a valid YAML

permalink
report
parent
reply
6 points

I hate that you’re correct lmao

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
5 points
permalink
report
reply
2 points

Bruh. I want to use this for my dotfiles. Thanks for sharing it!

permalink
report
parent
reply
2 points

You might want to checkout NixOS (or home-manager if you don’t want a cold deep dive into a rabbit-hole).

permalink
report
parent
reply
2 points

You’re probably right I have checked it out, but so far home-manager was a bit of a cold shower to me. I had a ton of trouble wrapping my head around which parts of what config should be responsible for what - and lots of the documentation seems to either be out of date or relying on thing that are still in the ‘testing’ stage?

I’m interested, but so far just found it frustrating.

permalink
report
parent
reply
12 points

Yaml for me, I really like it. And the fact that every valid JSON is also a valid YAML is nice.

permalink
report
reply
3 points

YAML here as well.

Configuration many levels deep gets so much harder for me to read and write in JSON with all [], {} and “”

Also the lack of comments… And YAML still is more used in software I’m using than JSON5, so I’d rather skip yet another format/library to keep track of.

permalink
report
parent
reply
2 points

Please do not use YAML. It’s a syntactic minefield. It also doesn’t allow tab indentation, which is supremely irritating.

permalink
report
parent
reply
3 points

As I said, I like it the most, so I will use it. I like its syntax (except for yes and no for booleans, but nothing’s perfect). I don’t care much for tabs vs spaces, I use tab in my IDE and whatever it does, it does.

permalink
report
parent
reply

Experienced Devs

!experienced_devs@programming.dev

Create post

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:

Community stats

  • 11

    Monthly active users

  • 77

    Posts

  • 540

    Comments