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

[Musing] User Preference for Functional Programming

Subject: [Musing] User Preference for Functional Programming
From: Hank Ratzesberger <xml@xxxxxxxxxxxx>
Date: Wed, 10 Jul 2013 10:32:59 -0700
 [Musing] User Preference for Functional Programming
Hello XSL users.

I am only conversing here, I hope not to take your time if you are not
interested.

At my work I went out of my way to create a way to script the update
of a JAXB object by converting it to XML.  it's about 90% XSL, but the
issue is that I learned that this had been tried before I came to the
company and they concluded it was difficult to maintain.

For example, they preferred Java code that looks like this:

  awardType.getAwardID().getAwardContractID().setModNumber(fpdsInfo.getModNum());

 over a lines in a resource file that look like the following (an
XPath and table:column pair)

  /award/awardID/awardContractID/modNumber=FpdsInfo:modNum

And a colleague spoke to me and said, 'Well, I much prefer action
words, they explain what is happening'

To which I said, I much prefer, that for some operation, the code
_always_ does the same action on data that _always_ is formatted the
same.

So I wondered, is this really the issue?  The preference to use
objects and functions over declarative statements, because the logic
behind <template> etc., is very powerful and consistent.  I would not
want to re-create it.

Meanwhile in the OOP world, GOF and other patterns, Java Beans, etc.,
etc,, all attempt to standardize structure and methodology, a problem
that DOM and XSLT go very far to solving.

Cheers,
Hank


--
Hank Ratzesberger
XMLWerks.com

Current Thread

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