15 ms·
If people absolutely want those, they can use TOML, which supports single line and inline comments. Given a choice, I'd even opt XML over YAML.
by usrbinbash 3y ago
If people absolutely want those, they can use TOML, which supports single line and inline comments.
Given a choice, I'd even opt XML over YAML.
- eviks 3y agoThat's fine, you can pick whatever XML ugliness you like, I was just pointing out that you can't solve the basic fail of JSON with comments by making them data
- usrbinbash 3y ago> I was just pointing out that you can't No, you were pointing out that some people won't like that solution. Which is completely fine. And yes, that solution is ugly as hell, and it is a dirty hack, and I don't recommend actually doing that if there is a better way (like TOML). But it does work. https://www.youtube.com/watch?v=C5kGCwJ25Yc https://www.youtube.com/watch?v=C5kGCwJ25Yc
- eviks 3y ago> ugly as hell, and it is a dirty hack, and I don't recommend actually doing that you're just paraphrasing the obvious - it's not a solution. And YAML is a better way and addresses the problem you choose to ignore as such - ugliness.
- usrbinbash 3y ago> And YAML is a better way and addresses the problem you choose to ignore I haven't ignored it, as shown by us discussing it here. And no, YAML isn't a better way. It does commenting better, true, and at the same time, it does so many things wrong, that are absolutely no problem in JSON, that it becomes a treatment worse than the disease.
- eviks 3y agoYou've argued that ugliness is a solution while the problem that needs to be solved is ugliness. You can't have it both ways, either it's a solution, then don't call it ugly as hell, or it's ugly, then not a solution (or it is but that means you ignore that ugliness is the problem) This specific brand of cleanliness does have a bunch of issues, but that's a trade-off depending on a use case
- usrbinbash 3y ago> You've argued that ugliness is a solution I think I speak for basically the entire history of programming when I say that ugly solutions exist and are widely used throughout our profession. > while the problem that needs to be solved is ugliness That's your opinion. I never argued that this hack solves ugliness. I argued that it solves the problem of not having a way to comment in JSON...which it does. I never claimed that it does so in a non-ugly or even good way. > This specific brand of cleanliness does have a bunch of issues Issues so massive they, imho, make it not worthwhile to use. As in, I rather miss the ability to write comments or write them with ugly hacks, than put up with YAMLs nonsense. The fact that better solutions exist (again, like TOML) make this worse.
- eviks 3y agoYou just persist in failing to understand the issue > I think I speak for basically the entire history of programming when I say that ugly solutions exist and are widely used throughout our profession. I can raise it to the level of the entire history of humanity when I say that people yearn for cleanliness and beauty > I never argued that this hack solves ugliness. Sure, because "you choose to ignore [the problem of ugliness] as such". People who share "my opinion" don't ignore that and use cleaner formats, so YAML is a solution that addresses the problem, your suggestion doesn't
- usrbinbash 3y ago> You just persist in failing to understand the issue And you just persist in making a "counter" based on your opinion of what my argument is, as opposed to what my argument is actually about.