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

Re: Hello XQuery ... Goodbye XSLT?


xslt recursive function
Jonathan Robie wrote:

> Rick Marshall wrote:
>
>> this is a very interesting observation of yours michael. it harks 
>> back to the early days of 3gl programming and the introduction of 
>> recursive algorithms to languages like algol/pascal/c. programmers 
>> then (and probably now) have difficulty with recursion. i'm sure if 
>> you take any set of programs and anlayse them for recursive 
>> opportunities you will find they exist but hardly ever exploited.
>
> [!!! snip !!!]
>
>> xslt is by definition a recursive style of programming which will 
>> appeal to a small group of disturbed individuals like myself, but on 
>> the whole it won't. it's inevitable that non-recursive procedural 
>> syntaxes will be proposed to replace it and will prevail.
>
>
> But probably not for writing stylesheets that convert TEI or DocBook - 
> and one of the reasons is that these tasks are more easily done using 
> a highly recursive approach.
>
>> it would probably be very good to get the w3c to have the standards / 
>> techniques we use examined by psychologists to get some perspective 
>> on how well mortal programmers (let alone others) will be able to 
>> comprehend and then use the standards and tools devoloped.
>
>
> Are you suggesting that no standards organization should develop a 
> language that uses recursion if most programmers don't find recursion 
> easy?

not at all. there's some algorithms that are just too hard to express 
any other way, or too difficult to implement. all i'm saying is that 
programmers (people actually) tend to think linearly, perhaps checking 
out options. but it is not natural to think recursively so it is a 
serious training issue. and i just don't see much evidence of recursive 
thought training, even within colleges these days.

what i am saying is that lack of understanding, and underutilisation of 
the technique means that there will always be a tendency to replace the 
more difficult to understand recursive expression with a, possibly less 
functional, linear expression.

perhaps we could do an informal survey here and ask when was the last 
time you wrote a recursive function? and how many non-recursive 
functions to do you write for every recursive function? how many 
recursive functions could you have used instead?

regards

rick

>
> Jonathan


begin:vcard
fn:Rick  Marshall
n:Marshall;Rick 
email;internet:rjm@z...
tel;cell:+61 411 287 530
x-mozilla-html:TRUE
version:2.1
end:vcard


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.