20 points · by 13ren · 18y ago · 43 comments
Most religious wars in computer science hinge on matters of taste. If you prefer emacs to vi, maybe that's just your style. If you prefer PHP to Ruby, there may be several good reasons why.
There is no such ambiguity in the case of XML. If you prefer XML to anything but XML, you don't know what you're talking about. You should have no say in anything that affects other programmers.
We're in this mess because of the unforeseen popularity of the web. When the web was created, its designers chose a simple and not particularly good markup language. Then the web grew, and instead of everybody recognizing the language as bad and replacing it, we turned a blind eye to its faults and kept it around.
The immense popularity of the web has glossed over all the deficiencies present in markup languages. People can't imagine that anything that built the internet might have something wrong with it. The internet is good, so anything that built the internet must be good as well.
Markup language was ill-conceived. Generalizing it into XML was folly.
How can you possibly take XML seriously? How do you squeeze an entire blog post out of it? Have you never bothered to look at the technology? The author is obviously capable of writing a coherent, well-thought out essay. Did he never stop and look at what he was doing and go, "This is a whole lot of shit!"
If I have some data structures that I am trying to send from my C# windows app to your java unix app, how would you propose we do that?
With XML, we can easily agree and collaborate on a format and both of our languages have builtin libraries to extract the data we need.
Its easy to build and easy to debug.
Note also that there are other technologies with pervasively available parsers, like JSON, which don't share any of XML's warts.
Now how do you propose we do that?
This is entirely the problem. The XML didn't solve anything. We still have to negotiate the terms of the transfer. We've agreed to use XML, true, but we are still at square one.
The xml solved the problem of me having to write a parser from scratch for whatever terms of transfer you come up with.
And I don't really see the downside for most applications.
You replied: OK, I'm going to send you a list using XML.
The only thing you have proved here is that your blind hatred for XML makes you unable to read and parse what is posted.
When arguing against the evils of a standardised format which there are proper parsers for everywhere, failing to parse stuff yourself is probably not on the list of things you want to do.
“XML is a giant step in no direction at all.” (Erik Naggum)
"Structure is _nothing_ if it is all you got. Skeletons _spook_ people if they try to walk around on their own. I really wonder why XML does not."
Surely you jest. In the real world, well, my world anyway, the problem of how to transfer bits of data around in a file format wildly different systems can understand is a major problem indeed, even if it's not a terribly sexy one, and the, admittedly ugly, representation of data in some sort of HTML-inspired fashion may not be anywhere near a solution for the data representation problem, it's most definitely better than not making a stab at solving the problem at all.
The article is pointing to technologies like JSON as a "backlash" to XML. I only use JSON when sending PHP objects directly to javascript to manipulate. Why create a data interchange format if you don't need to?
Maybe my "taste" is to have a solid platform at the expense of some syntactic niceties. Any any case, saying that anyone who disagrees with you is certainly ignorant just makes you come off as foolish.
XML is and was a great solution far a huge number of things. Overexcited developers were tad too eager to put it to use for things outside its true scope (regardless of what it was marketed as), and now they're realizing that there are better alternatives for those particular applications.
XML was and still remains an excellent solution for the problem it originally solved: a joint human and machine readable markup language.
XSLT happens to be my pet peeve. I simply can't understand how anyone would have ever looked at that problem ("how to turn a source data document into a presentation format" -- something that has been solved sanely a thousand times by obscure technologies like "scripts", or "PHP") and decided that the best way to handle it was a turing-complete pattern matching language written in XML itself! I mean, it looks more like a torture device than a programming language...
But transforming trees with a functional programming approach (not PHP) is a natural fit.
Thats about all there is to it.