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

Experienced Devs

3961 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] 12 points 1 year ago (2 children)

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

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

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.

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

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

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

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.