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

Re: Microsoft's vision of data and the role of XML in


microsoft vision design
Elliotte Rusty Harold scripsit:

> It's not really all that different. But most developers are much more 
> comfortable with the iterator design pattern than the observer design 
> pattern. It's easier for them to see where, when, and why, each event 
> gets fed into their code when they ask for the event rather than 
> responding to it.

A fundamental difference is that state can be encoded in local variables
and recursion when using a pull API; you can have a routine which processes
an element and calls various routines to process its children, with
recursion when appropriate.   This is essentially the method of
compiling by recursive descent as applied to XML.

In an event-handler environment, you have to maintain the state and the
recursion stack explicitly.  This is painful and easy to get wrong.
In my Project T, I have to maintain complicated and messy state in
the upper level because the lower level is an event-driven SAX-style
push API.

-- 
Some people open all the Windows;       John Cowan
wise wives welcome the spring           jcowan@r...
by moving the Unix.                     http://www.reutershealth.com
  --ad for Unix Book Units (U.K.)       http://www.ccil.org/~cowan
        (see http://cm.bell-labs.com/cm/cs/who/dmr/unix3image.gif)

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.