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

Re: Are we losing out because of grammars?

  • From: Ken North <ken_north@c...>
  • To: xml-dev@l...
  • Date: Wed, 31 Jan 2001 19:37:56 -0800

uheck
> > Rules, due to their invocation at a points in time, make inroads into
the
> > "route" (e.g. SQL triggers).  Declarative rules *use* grammar for their
> > definition and depend on "grammar valid" data on which to operate.

> > SQL didn't get basic triggers until 2.0.
[snip
> > uHeck, most people never use triggers.  They just put it somewhere in
> > the application code.
>
> Well ... I'd say that 'constraints' are 'closer'  than 'triggers'.

My apologies for being too busy lately to follow this entire thread. I'll
jump in here at the risk of being redundant.

In the SQL world, there is often a division of labor between database
designer and application programmer. The designer is the one who creates
schemas, expressing constraints and specifying triggers. Skilled designers
look to declarative rules and constraints first, and then use triggers if
constraints are insufficient for what needs to be done.

Using application code to enforce rules, instead of declaring constraints
that are managed by the container (database), leads to versioning problems.
With container-managed constraints, the rules are applied uniformly across
all clients connecting to the container. With rules coded in application
objects, you have to co-ordinate application updates so the rules are
consistent from one program to the next. Different programming languages,
different namespaces, different versions of classlibs -- it can be nasty
trying to stay in sync.

In the XML world, we can now exploit types and constraints, but one question
is whether developers will learn from the SQL experience, i.e., declarative,
container-managed logic solves some of the proliferation/fragmentation
problems that occur with ad hoc application logic.






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.