4 ms·
GenX: “Here’s XML, it can be used as a data exchange format and here’s a tool ecosystem to ensure structure and correctness” Millennials: “That is way too much
by efitz 3y ago
GenX: “Here’s XML, it can be used as a data exchange format and here’s a tool ecosystem to ensure structure and correctness”
Millennials: “That is way too much text, it’s like way longer than an SMS message. And everything’s on the internet. Here’s JSON, which is much shorter and more Web 2.0.”
GenZ: “Bra, all those squiggly lines are sus, try this YAML. It’s dank, no cap.”
- nerdponx 3y agoIf JSON had comments and trailing commas we probably wouldn't have YAML.
- cryptonector 3y agoUse jq then. It has comments, though no trailing commas (we could fix that). As a bonus using jq code as configuration gets you templating for free.
- totallywrong 3y agoNah, I'd still pick YAML any day.
- dheerajvs 3y agoBoth JSON5 and JSONC have those features. There is a discussion[0] on the VS Code repo to use JSON5 format instead of JSONC for the settings file. [0]: https://github.com/microsoft/vscode/issues/100688 https://github.com/microsoft/vscode/issues/100688
- deafpolygon 3y agoIKR, like, it's a solved problem bruv, no cap.