News for hackers. Stuff that matters.
Re:XMPP Myths by acdha on Tuesday August 11, 2015 @08:55AM (#10040602)
Namespaces are a nice idea but almost all XML libraries make them unnecessarily cumbersome by requiring full specification everywhere. I sometimes wonder whether just fixing that would have made XML more popular after having seen so many people try to write something like a selector using the format in the document (ns:element), burning time until they learned that you have to use FULL_URL:element and in some cases even declare the namespace names you can't use.

No, it's not the biggest challenge but it's so transparently a case of conplete disregard for developer productivity that I've heard it mentioned by a lot of people as why they avoid XML.

Re:XMPP Myths by joepie91_ on Tuesday August 11, 2015 @09:03AM (#10040661)
> No, it's not the biggest challenge but it's so transparently a case of conplete disregard for developer productivity that I've heard it mentioned by a lot of people as why they avoid XML.

This is the core issue with XML/XMPP. UX simply doesn't seem to have ever been a factor when designing either of them - whether towards the developers or the end users.

Re:XMPP Myths by acdha on Tuesday August 11, 2015 @09:15AM (#10040736)
Agreed: the XML and Java communities from the late 90s were plagued by the assumption that complexity was intrinsically good and that everyone wants to spend the time required to completely internalize a massive specification and all of its dependencies.
Re:XMPP Myths by dvanduzer on Tuesday August 11, 2015 @11:19AM (#10041688)
That is not at all a good characterization of what was going on. Do you remember what it was like before XML and Java? Could we have built anything on the scale of the web with CORBA?

(XMPP would've used JSON had it existed in 1998, fwiw.)

Re:XMPP Myths by acdha on Tuesday August 11, 2015 @12:28PM (#10042321)
> Do you remember what it was like before XML and Java?

Yes – in particular, I remember liking the initial promise of XML 1.0 and then being disappointed as the initial simplicity was buried under layers of gratuitous complexity as the enterprise computing crowd jumped on board. Some neat ideas (e.g. XPath)

Similarly, my first database-backed web app was a Java servlet in 1996. I assumed it would become richer in the future but it was still pretty easy write and deployment was pretty simple at that point. Instead, the community chased off after more complexity (JavaBeans, the near-pervasive obsession with runtime configuration and the ensuing massive config files, nested abstraction layers, etc.) rather than focusing on basic developer productivity. We got massive piles of code like RMI (i.e. CORBA) before basic features like regular expressions, logging, etc.

> Could we have built anything on the scale of the web with CORBA?

No. We also failed, repeatedly, to do it with XML for reasons which are obvious to anyone who's ever used SOAP/WSDL/etc.

The common theme was seeing complexity and, especially, abstraction as a universal good rather than something with real costs and forgetting how important high-quality implementations are, particularly when you're relying on them to help with all of that complexity.

Re:XMPP Myths by dvanduzer on Tuesday August 11, 2015 @01:40PM (#10042944)
> The common theme was seeing complexity and, especially, abstraction as a universal good rather than something with real costs

Rich Hickey did a great service outlining some common problems when thinking about the word complexity itself: http://www.infoq.com/presentations/Simple-Made-Easy

I don't think it's about the engineers wanting to see complexity, so much as the problems you mention stemming from design-by-committee.

Re:XMPP Myths by jessaustin on Tuesday August 11, 2015 @12:14PM (#10042171)
In what sense was the web built on "XML and Java"?
Re:XMPP Myths by dvanduzer on Tuesday August 11, 2015 @01:16PM (#10042724)
The long arc from "what came before" has periodically involved cleaning up old complexity. There have always been arguments about how simple is simple enough, but these systems weren't designed with complexity as a goal.

The web is a lot of things, but broad consumer adoption of web technology also involves boring things like banks. SOAP and WSDL weren't created in a vacuum. They exist because Java / XML made it even possible to bridge the gap from the old world.

Re:XMPP Myths by jessaustin on Tuesday August 11, 2015 @01:38PM (#10042932)
I don't know what "old world" you're talking about. When the web was first a thing, it was written in C and PHP and Perl. All the Java crap was layered on top later, temporarily, and unsatisfactorily. The enterprise repeatedly misunderstands what the internet is and how to use it, but that is the enterprise's problem, no one else's.
Re:XMPP Myths by dvanduzer on Tuesday August 11, 2015 @01:44PM (#10042977)
Banks.

As much as we like all sorts of features of the web, integrating commerce was what brought the enterprise in, drove down costs, etc etc etc.