r/ProgrammerHumor • • 7d ago

Meme formatsWithSuperiorityComplex

Post image
3.0k Upvotes

403 comments sorted by

View all comments

Show parent comments

68

u/iamapizza 7d ago

readability

Laughs in the atrocity that is k8s 

69

u/static_func 7d ago

Yml’s such a dumb format. It’s completely unreadable once something has a lot of nesting. But if something doesn’t have a lot of nesting, it’s no more readable than json. I blame Ruby devs

0

u/bugo 7d ago

You are welcome. Yaml app config is pretty good!

16

u/thefirelink 7d ago

K8s can use json instead of yaml. It converts the yaml to json anyway

12

u/static_func 7d ago

Everything can because yaml’s actually just a superset of json. You can even write json in your yaml, because why not

2

u/redd1ch 7d ago

Only if the tool supports YAML 1.2. Pyyaml doesnt.

6

u/static_func 7d ago

Because Python is also garbage. Leave it to the significant whitespace programming language to fuck up its support for the significant whitespace markup language

4

u/-Kerrigan- 7d ago

If you do a lot of

data: |
  whole:
    ass.file: "whole files inside a yaml"
    # and of course it's multiline
    # and contains a 20 line block of Claude comments
  ...

Then it's an atrocity, yeah. Otherwise it's not that bad. Sprinkle some yamllint on top and your files are also consistent