this post was submitted on 27 Feb 2024
421 points (97.7% liked)

Open Source

31063 readers
324 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

Yet another "brilliant" scheme from a cryptobro. Naturally this caused a gold-rush for scammers who outsourced random people via the gig economy to open PRs for this yml file (example)

you are viewing a single comment's thread
view the rest of the comments
[–] umbraroze@kbin.social 43 points 8 months ago (3 children)

Brief history of YAML:

"Oh no! All of these configuration file formats are complicated. I want to make things simpler!"

(Years go by)

"...I have made things more complicated, haven't I?"

YAML is generally good if it's used for what it was originally designed for (relatively short data files, e.g. configuration data). Problem is, people use it for so much more. (My personal favourite pain example: i18n stuff in Ruby on Rails. YAML language files work for small apps, but when the app grows, so does the pain.)

[–] db0@lemmy.dbzer0.com 27 points 8 months ago (1 children)

Ansible is using YAML and it's orders more readable than any other config engine, like puppet or cfengine.

[–] pastermil@sh.itjust.works 3 points 8 months ago

Ideally, yes it can be beautifully written, certainly more than bash scripts.

With that said, I've also seen some hideous ansible scripts...

[–] toastal@lemmy.ml 1 points 8 months ago* (last edited 8 months ago)

originally designed for (relatively short data files, e.g. configuration data)

This I can get behind. But because it’s not bad in those spaces folks think it’ll be a good idea in all spaces. Anchors do neat things, but organizing large files with YAML’s weird rules around quoting, & no support for tab indentation rub me the wrong way.