-- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com
Frank W. Zammetti wrote:
Well, in all honesty, this isn't something that was initiated by me, I've never had a thought of passing objects back and forth, so I'm not sure I can give you a real, concrete use case that would explain it. I certainly hear what your saying about XML. I myself have done that very thing in place of something like this.
I think the point that makes this interesting is the idea of objects end-to-end. Think of it almost like RMI between a browser-based client and a Java-based back-end. As in RMI, an object gets "flattened" into some data representation, transmitted and reconstituted on the receiving end. But on both sides of the conversation you have an object.
If what your asking is why not just pass XML representing the data instead of a representation of an object, then I'd say because then you have to know about some intermediary interpretation of an object, namely XML. It would kind of be like saying that instead of using RMI, why not just serialize an object's data as XML and transmit that, then parse it on the other end... Certainly that's done every day, but RMI is I think more elegant in that your always dealing in objects, and conversion for the sake of transport is done transparently.
I know what your saying about tying to Javascript, but I'm not sure there's too many client-side scripting languages to worry about. I mean, Javascript and VBScript are all I can think of, and although it's been a while since I worked with VBScript, I don't recall there being an object creation mechanism like in Javascript, so I'm not sure how big a concern it is. Certainly I think it's safe to say that Javascript is by far the most popular client-side scripting language, and therefore a solution that is going to cover 75% of applications is probably useful.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]