[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Four fine text-based data formats ... liberate yourselffro

  • From: Uche Ogbuji <uche@ogbuji.net>
  • To: Rick Jelliffe <rjelliffe@allette.com.au>
  • Date: Sun, 24 Mar 2013 21:12:37 -0600

Re:  Four fine text-based data formats ... liberate yourselffro
On Sun, Mar 24, 2013 at 8:55 PM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:

I disagree with Simons problems with schemas, at least i think there are simple ways to avoid some of the problems: in many recent projects i use simple highly generic dtds for vocabulary, id and parent  constraints plus schematron for others: but these dont trap me because at any time i can plonk in processing instructions. It does not hold water to say that XML has problem X if you simultaneously reject utilizing Xml's tool for overcoming problem X!


Yeah in my case, in my recent projects I've used an Examplotron-based modeling system I wrote into my Amara software (in Python).  I almost never have to bother with heavyweight schemata.


JSON might get too heavyweight too if you tried to add a layer on JSON to indicate the status of each data item -- which is what XML is all about: is this part of the main text flow?, is this info about that text?, is this metadata/attribute?, is this text for under_the_hood messages to humans?, is this text part of some hack?  That status information is useful for some applications (industrial publishing) but not as compelling as an organizing principle for ephemeral data exchange,IMHO.

Every technology has tradeoffs and these change over time. JSON embodies some good software engineering qualities (reducing overworking) but not others (for archiving having no comment mechanism is surely a complication). XML has no tag omission which restricts what can workably produce it. 


Yeah, JSON is rather painful to use in my experience, and I use it almost every day. The lack of comments is a killer.  And using JSON makes you really appreciate XML's enforced end tags.  I so often get lost in a thicket of "]" and "}" and end up having to primitively count on my fingers while squinting at cryptic error messages.  Some of its strict rules are pretty awkward (quotes and commas).  Adding a quick layer for some sort of adapted processing can be an enormous labor.  With XML you just slap in a new element or even use a PI.  Of course these are largely problems when you're editing JSON by hand.  Generating JSON from code is usually straightforward enough.  But it's hard to avoid dealing with it by hand if it lurks anywhere in the system.  For example, unit test cases should properly be hand-crafted.  I do like wiki text, though.  I use that a lot.


--
Uche Ogbuji                       http://uche.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
http://wearekin.org
http://www.thenervousbreakdown.com/author/uogbuji/
http://copia.ogbuji.net
http://www.linkedin.com/in/ucheogbuji
http://twitter.com/uogbuji


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.