Linus Torvalds is wrong about XML
kidstrythisathome.com
kidstrythisathome.com
If 99% of XML uses make a bad name for the rest of them, the problem is with XML. "XML" is not a spec - it's a culture, and the culture is rotten, and Linux calls it out. Even if there's the occasional good use of XML, it pales among all the other horrible uses -- and every rare good use of XML is not actually better than the alternatives.
Author blames Linus for using "m" to signify "meter" instead of "miles" as being incomplete. Well, every nontrivial important measure is in MKS, in which "m" is properly distinguished from "mm", "cm", "km". (And by the way, did the post mean nautical miles, or ground miles?)
ISO 8601 does specify a standard for duration. I've only ever seen it used in vCalendar entries - I've seen DD:HH:MM:SS everywhere else. So while it is an ISO standard, much like OOXML, almost no one actually uses it - in which case I wouldn't be hard on Linus for not using it.
> Also I'm very confused why temperatures are given in Coulomb.
Me too, but it's still more sane than giving them in Farad like some people do :)
That should be a subject of education. I never new about that ISO 8601 until I seen an xkcd caricature, whereas I should have known only that standard notation in my education!
"XML shall be straightforwardly usable over the Internet."
The bewildering number of XML specifications to simply use an XML file makes it daunting for anyone to learn to use XML "properly". The XML standard today is hardly anything but "straightforward".
Additionally, it is not a particularly efficient format for machines nor for humans to use. Saying that a good editor can solve everything is a very flippant way of addressing the common challenges with editing maze-like XML documents.
Perhaps Linus didn't elaborate on the context of his criticism for the XML format, but it resonated with a lot of programmers not because of his popularity but they had faced similar painful situations before.
Subsurface XML's are, to me at least, reasonable. Does it follow a spec? No. Can I, a human, look at it and say that 'm' stands for meters? Sure, the context is "humans diving" so 'm' can stand for miles. Being a human means I can process contextualized information.
Man, I really hate XML and have some dislike for its defenders.
Property files go a long way to help differentiate it. XML has invaded almost all aspects of Java programming, but it seems things are getting better with Java EE 6 and the web services annotations for example, but application servers and framework authors need to stop cramming XML this and XML that for configuration files.
This needs to stop.
What I'm trying to say is: is this just making a general and well-worn case for XML or is there a point relevant to Subsurface? I'm sure I could find a shallow remark made by this author and write 1000 words of qualification around that too. Right now, all I see is someone responding to a statement from a big name for attention.
Is there a argument hidden in there about XML's relative ease to work with compared to other formats, either programatically or as a user? Any points on if XML is the right or wrong choice of tool for subsurface?
The closest thing I see is a throwaway comment about an instance where CSV files also benefit from editors with features supporting more than plain text. And a point about unit type specification irrelevant to the file format.
Does XML make a file understandable by a developer in superior ways to other formats? Not especially.
Does the use of XML make error recovery from a partially borked file possible? Not really.
What problem is actually solved by XML (that other formats don't also "solve" ... and better?)
They have different columns because it deals with about 600 different tables and the output is what is relevant to the test. I have decided that in this instance, I want to capture all of the results in a single table so that they are centralized. XML solves this issue for me. I can grab the results in XML, and insert them into a centralized table where they can be reviewed later.
TL;DR XML can solve some data structure issues where you don't always know the final output until it shows up.