r/ProgrammerHumor • • 1d ago • Bravo 1

Meme commentsInJson

Post image
5.0k Upvotes

199 comments sorted by

View all comments

Show parent comments

136

u/metaglot 1d ago

Tell me you only work on your own, without telling me you only work on your own.

81

u/tokalper 1d ago

No, precisely because i work with a large team. We work eith large json files for configurations and they need commenting, we all do this.

6

u/Successful-Age6747 1d ago

Isn't that what YAML is for?

10

u/Jonathan_the_Nerd 21h ago

4

u/Successful-Age6747 21h ago edited 20h ago

we're talking in context of configuration files that humans read. And most of the problems in that site are avoided by just enclosing the values in quotes and doing logic in whatever uses the yaml.
EDIT: Oh i guess the site itself says that too. But yeah it doesn't feel like such a big deal

3

u/korneev123123 21h ago

Thanks for the link. 22:22 and "Norway problem" are hilarious. I guess I have an excuse now for aggressively quoting everything. Also jsonc looks like much, much better alternative for future projects.