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

Re: Use-cases are the bane of orthogonality

  • From: Michael Kay <mike@saxonica.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Mon, 8 Jun 2015 00:10:34 +0100

Re:  Use-cases are the bane of orthogonality
> 
> [Definition] Orthogonality: if a tool is orthogonal, it can be added, replaced, or removed, in favor of better tools, without screwing everything else up. The classic example is Unix command line tools: you have one tool for getting the contents of a disk (dd), another for filtering lines from the file (grep), another for writing those lines to a file (cat), etc. These can all be mixed and matched at will. [1]
> 

I think we should be able to do better than this definition.

If we think of the mathematical meaning of “orthogonal”, I think the idea is that the system has a number of design parameters and these can be selected independently of each other. So for example if you have a system that supports four data models (DOM, JDOM, XOM, AXIOM) and three APIs (XPath, XSLT, XQuery) then it should be possible to use any of these data models with any of these APIs. There may be no use case for running XQuery over XOM, but you should do it in the interests of orthogonality.

The UNIX pipe operator is orthogonal because the command used as its left-hand operand can be chosen independently of the command used as its right hand operand. So this is an example of the general principle; but I think the definition you cite fails to state the general principle. 

For a debate about use-cases versus orthogonality that is highly topical, consider the need to design a query language that can handle both XML and JSON. These are two use cases. A design with maximum orthogonality can handle all the primitives that occur either in XML or in JSON in any combination, not only in the combinations that arise with XML and with JSON; for example it can handle arrays whose members are nodes.

Michael Kay
Saxonica



[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.