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

Re: Feasibility of "do all application coding in the XML langu

  • From: "Mukul Gandhi" <gandhi.mukul@g...>
  • To: "Kurt Cagle" <kurt.cagle@g...>
  • Date: Thu, 4 Dec 2008 09:22:22 +0530

Re:  Feasibility of "do all application coding in the XML langu
Hi Kurt,
  Thanks for your thoughts.

I agree that declarative programming is the main style of programming
in web based applications, and for XML oriented tasks.

But even in web based applications (say in JSP or ASP), we do use
imperative code (e.g., a Java fragment in a JSP page).

I think, saying that imperative programming will completely vanish in
near future may not be correct.

Imperative programming is needed for some lower level tasks. For e.g.,
1. File handling
2. Network programming
3. Implementing distributed programs
4. Implementing multi-threaded applications

These are just some of the examples which come to my mind, which
require imperative programming.

On Thu, Dec 4, 2008 at 12:09 AM, Kurt Cagle <kurt.cagle@g...> wrote:
> Mukul,
>
> Re: your examples -
>
> #1. Complex Business Logic. I've actually found that if you break business
> logic down into state transitions, XML-based solutions are actually more
> effective there than Java ones are, in part because of the templating
> capabilities of XSLT, in part because it makes changing business logic
> simply a matter of changing a particular set of pragmas in an XML document
> (I've done some very sophisticated BL type work using ISO schematron, for
> instance).
> #2 Game Programming. Again I'd differentiate here between the rendering
> modules (which I would agree should be handled only via imperative code
> because of processing speed limitations, though it should be pointed out
> that OpenGL is for the most part a declarative language) and game logic,
> which I'd argue is a specialized case of #1. Note even here, though, most
> game engines maintain declarative data objects with very low level (CRUD
> type) APIs, rather than maintaining the overhead of a full OOP object for
> every entity instance in the game. I wouldn't necessarily use XML here, but
> that doesn't mean that what's involved isn't defined within the context of a
> declarative state diagram and timed transformations on those diagrams.
> #3 GUI Programming. Er, um ... given the migration to HTML/AJAX based
> systems of nearly all GUI-based applications, I'd question this.
> JavaScript/AJAX may be involved, but again its a relatively simple mapping
> in both cases to turn external JavaScript working on objects into internal
> JavaScript bindings to a declarative (XHTML or HTML) environment. My
> suspicion is that by by 2015, imperative GUI programming will be rare.
>
> -- Kurt Cagle
> -- Editor, xml.com
> -- O'Rielly Media



-- 
Regards,
Mukul Gandhi


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