this post was submitted on 15 Aug 2023
40 points (95.5% liked)
Technology
59107 readers
5344 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you want the file to be directly human readable/editable:
If you never need to look at it or edit it manually:
I hate yaml with a passion. for stuff such as ansible it becomes an uneditable mess (one copy and paste away from destroying the whole file)
luckily, yaml is a superset of json, so you could just write json and feed it through a yaml parser and it'll work
if i miss a quote in json, it's an invalid file. I fix it and move on. Maybe just pass it through a beautifier or something.
if I mess up indentation in yaml (which can easily happen after a copy and paste), I get a valid file that means something completely different. And no beautifier can help with that, because it's a valid file. I have to look really closely to find the error, because tools can't help. And when I do, I usually have to change multiple lines, instead of just adding a comma.