r/ProgrammerHumor • • 8d ago

Meme formatsWithSuperiorityComplex

Post image
3.0k Upvotes

403 comments sorted by

View all comments

Show parent comment

22

u/nderscore_ 8d ago

Comments don't belong in message exchange formats. JSON is not suitable and not was meant for configs. They do different things and if you use it incorrectly, it's your fault.

23

u/Lalli-Oni 8d ago

Object notation. Its not called JSDTO.

5

u/Blue_Moon_Lake 7d ago

Object notation, not comment notation.

0

u/Lalli-Oni 7d ago

Notation, like comments.

4

u/Blue_Moon_Lake 7d ago

You're confusing notation and annotation.

3

u/Lalli-Oni 7d ago

Ahh, you're absolutely right of course. Thanks didn't know the semantic difference

12

u/garnet420 7d ago

Good thing json is not a good message exchange format either.

2

u/Noslamah 5d ago

Oh yeah of course, skill issue, when literally Microsoft, the multibillion dollar software company, uses JSON for VSCode config files essentially forcing the overwhelming majority of developers to do so. I guess every dev on earth should have had the knowledge to make a better informed decision about data formats than fucking Microsoft, and then also use Vim and thoroughly vet all software they use to make sure none of them made the same mistake that the VSC devs did; and have a zero tolerance policy on all software that dares use json for configs because it is just THAT important to us to use comments.

No. There is no real reason for json not to be a perfectly valid format for config files other than the lack of comments. This is not a skill issue on the part of the user, this is a skill issue on the people who designed the language.

3

u/requion 5d ago

Funnily enough, VSCode uses Microsofts JSONC (JSON with comments), which means config files in VSC do support comments. xD

2

u/Noslamah 5d ago

Oh I was not aware of that! Anyways the point remains, the only reason why JSON would be bad for configs is the lack of comments; something that Microsoft seems to have fixed

1

u/Prawn1908 7d ago

What irks me is 95% of JSON config files I see could have just been INI files.

1

u/Best_Ad6308 2d ago

Neither for RPCs though. It is shit in any task.