Earlier quoted context omitted.
XML grew from SGML (like HTML did), and it brought from it a bunch of things that are useless outside a markup language. Attributes were a bad idea. Entities were a so-so idea, which became unapologetically terrible when URLs and file references were allowed. CDATA was an interesting idea but an error-prone one, and likely it just did not belong. OTOH namespaces, XSD, XSLT were great, modulo the noisy tags. XSLT was…
> OTOH namespaces, XSD, XSLT were great I don't know, the few times I have had to XML, I went "This is not so bad, I don't know what all the fuss is about" until I hit namespaces. I don't know if I was just using an inferior library but namespaces sucked. The minute namespaces came into the picture all the joy left the project. And XSLT... I only ever did one thing with it "use the browser to turn demarc XML records…
The lost art of XML
161–170 of 179 posts
Re: The lost art of XML
#162Re: The lost art of XML
#163I don't see how this is in any way more of an afterthought than XML Schema was (except that it was designed by the same group as XML)
> Namespaces. XML allows you to compose documents from multiple schemas without collision.
It "allows" it in the extremely narrow sense that you can write a file with elements from different namespaces, parse it into a DOM with a schemaless parser and can still distinguish the elements.
It does not define any semantics about what an interaction between different namespaces means or which namespaces you can and which you can't combine.
Re: The lost art of XML
#164Earlier quoted context omitted.
It is called DevUx and it is certainly a thing. If the tooling sucks and the entire ecosystem is hard to understand, people won't adopt a technology. XML was forced down everyone's throat for a decade! The second something else came along literally everyone who could jumped ship.
Interestingly, I've never heard the term 'DevUx' before. I suspect it's the same concept as Developer Experience, which I also find supremely important and historically underappreciated. Companies like JetBrains for example make a killing by being a company that really takes this aspect seriously. On the other hand I've had a fellow developer laugh at me when trying to explain how this is important, so I'm unsure thi…
The apple app store had an amazing initial devux, vs the blackberry app store which famously was a huge pain just to apply to and all the tooling was horrible.
Re: The lost art of XML
#165Earlier quoted context omitted.
For most data that is structured in JSON now, you could have easily done the same in XML using a simple text editor. I agree with the author that XML is very similar to S expressions but with the brackets replaced by closing tags. Parsing XML wasn't complex either. There have been many good libraries for it in pretty much most languages
If only there was one good library. libxml2 is the leading one, and it has been beleaguered by problems internal and external. It has had ABI instability and been besieged by CVE reports. I agree it shouldn’t be hard. On the evidence, though, it is. I suspect the root problem is lack of tools. Lex and yacc tools for Unicode are relatively scarce. At least that’s what’s set me back from rolling my own.
Re: The lost art of XML
#166I hate xml.
Re: The lost art of XML
#167> This is insanity masquerading as pragmatism. > This is not engineering. This is fashion masquerading as technical judgment. The boring explanation is that AI wrote this. The more interesting theory is that folks are beginning to adopt the writing quirks of AI en masse.
I feel more like AI have adopted some preexisting disagreeable writing styles from the beginning and now we associate these with AI.
Re: The lost art of XML
#168In addition, it has tons and tons and tons of cruft, specification bloat, dogma.
The best parts of XML were probably XPath, and some aspects of document validation.. and that's it
Re: The lost art of XML
#169A saner subset of XML, possibly run through some over-caffeinated developers to lighten its redundant syntactic feeling, would have given us something FAR better than JSON's failure and YAML's gratuitously hypercomplicated syntax.
Developers Are Stupid - developer.