The Artima Developer Community
Sponsored Link

News & Ideas Forum (Closed for new topic posts)
Plain Text and XML

18 replies on 2 pages. Most recent reply: Jul 18, 2003 10:52 AM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 18 replies on 2 pages [ « | 1 2 ]
Todd Blanchard

Posts: 316
Nickname: tblanchard
Registered: May, 2003

Re: Plain Text and XML Posted: May 28, 2003 4:14 PM
Reply to this message Reply
Advertisement
> Of course there are instances where XML is misused, abused
> or simply a bad choice. Ant build files are one example.

This isn't that bad of a use I think.

> Apple's plist format is another.

Yes - the text only version of these (NextStep classic style plist) - is what I routinely use to pass around structured data as text. The XML-ization of this format achieves buzzword compliance at the expense of readability and size.

> The crux of the problem we are facing is that programmers
> do not create easily parsed, simple data formats easily

But they only bother to create them in the absence of something already working. I have seen no homegrown syntaxes on NextStep/Cocoa systems because its trivial to serialize/deserialize arbitrary collections of strings.

XML filled a void - but to borrow your analogy, the void was round and XML is roughly triangular. So its usually a bad fit.

> Swinging back from XML to text/yacc isn't a magic bullet,
> and won't solve any problems in and of itself.

No, but a much simpler serialization format would go a looong way towards eliminating the hated homegrown syntaxes. I've got classic plist parser/serializers for ObjectiveC, Java, and Smalltalk. They take about a page of code and have amazing power. I don't see anything in 90% of XML that this mechanism doesn't do better in every way.

I think XML in general is just overhead and I avoid it whenever possible.

Steven Deal

Posts: 3
Nickname: situboo
Registered: Jul, 2003

Re: Plain Text and XML Posted: Jul 17, 2003 3:00 PM
Reply to this message Reply
I've been following this critism of Ant for sometime now. I find it ironic that the point of illegibility made against it contradicts one of the reasons I have suggested folks use it. How it in effect becomes a document to the build process and I don't have to go to someone in a SCM group to understand how the application is built. Where is the problem? Being dependent on the java program that consumes it?

Steven Deal

Posts: 3
Nickname: situboo
Registered: Jul, 2003

Re: Plain Text and XML Posted: Jul 17, 2003 3:04 PM
Reply to this message Reply
I agree. I've heard this critism of Ant for sometime now. I find it ironic that the point of illegibility made against it contradicts one of the reasons I have suggested folks use it. How it in effect becomes a document to the build process and I don't have to go to someone in a SCM group to understand how the application is built. Where is the problem? Being dependent on the java program that consumes it?

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Plain Text and XML Posted: Jul 18, 2003 10:52 AM
Reply to this message Reply
Hmm, I don't see the irony (maybe Alanis Morissette would, though).

Is the argument here that XML files are "documents" whereas other (possibly more legible) files are not?

Wouldn't it be better to have a crisp and clear build-file syntax which was much more tailored to a build process that could also generate an XML file output?

Flat View: This topic has 18 replies on 2 pages [ « | 1  2 ]
Topic: Exploring Design Spaces Previous Topic   Next Topic Topic: Should Linux and Java be Combined?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use