Hacker News new | ask | show | jobs
by garrettgrimsley 830 days ago
>I think the configuration aspect (YAML)

What are the reasons to not use JSON rather than YAML? From my admittedly-shallow experience with k8s, I have yet to encounter a situation in which I couldn't use JSON. Does this issue only pop up once you start using Helm charts?

2 comments

One of the most annoying limitations of JSON is that it does not allow for comments.
at the surface level yaml is a lot easier to read and write for a human. less "s. but once you start using it for complex configuration it becomes unwieldy. but at that point json is also not better than yaml.

after using cdk i think that writing typescript to define infra is a significantly better experience