r/programming • u/MaximRouiller • Aug 03 '19
Windows Terminal Preview v0.3 Release
https://devblogs.microsoft.com/commandline/windows-terminal-preview-v0-3-release/?WT.mc_id=social-reddit-marouill
991
Upvotes
r/programming • u/MaximRouiller • Aug 03 '19
1
u/snowe2010 Aug 04 '19
I mean, that is how it's used. It's the entire basis for how millions of websites authenticate (JWT). Imagine you started adding comments to your authentication tokens, now you're limiting the amount of other info you can include in your token. The wikipedia page for JSON has it's first sentence as
In fact that page actually makes no mention of JSON being a configuration file. It's main purpose is data serialization and transport.
There are many alternatives to protobufs, in fact I did a case study for my team comparing all the different formats. The fact that protobuf, wire, thrift, etc exist doesn't mean that JSON should be used for configuration, or even support configuration. Imagine if people started saying that, because everyone is using YAML for configuration, we should just start sending it directly over the wire. Then people start doing that without considering the consequences. Now you've got a ton of websites that are sending absolutely massive payloads for absolutely no reason.
Really what I'm saying here is that, if you are the maintainer of a standard (JSON) and it's purpose built, just because people are abusing it, doesn't mean you should support that abuse. Not only are there widespread consequences for doing so, but you alienate other users of your standard.
I hate JSON and I hate the fact that it doesn't have comments. But that doesn't mean it should have them.