ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] If XML is too hard for a programmer, perhaps he'd be better off as a crossing guard
by Sean McGrath other posts by this author
Mar 28 2003 8:38PM messages near this date
Re: [xml-dev] ID/IDREF makes XML generation NP-hard | Re: [xml-dev] Re: If XML is too hard for a programmer, perhaps he'd be better off as a crossing guard
> >Dare Obasanjo wrote:
 > >The "Desperate Perl Hacker" argument  was a bogus claim for XML 1.0 
because of the existence of
 > >entities and CDATA sections but is quite farcical now with the existence 
of the Namespaces in XML
 > >recommendation (and it's bastard spawn "QNames in content").

[Tim Bray]
 > Empirically false, at two levels.  First, lots of people process XML with 
perl (or equivalent) all the time.
 > Second, the real requirement was to make it tractable to take a large 
body of document data and make
 > quick programmatic changes on it.  Which, obviously, XML makes way easier.

Ah, but what if the programs are *wrong* because of the failure to take 
account of all the lexical complexities
required to make such programs *correct*. Just because lots of people do 
it, don't make it right.

Right?

Lets focus on a simple, straight question.

Lets imagine we are developing a mission critical application - a life 
support machine.

We need to detect the pulse of a patient in the data stream. There is a 
<pulse>  tag that contains
the data we want. What is the shortest *correct* program to extract out the 
pulse figures using regexp?

I would argue it is a complete XML 1.0 WF parse! If it ain't, I'm not 
buying that life support machine. If I'm charged
with developing the application, I'm firing any programmer that uses regexp 
to implement!

Sean


http://seanmcgrath.blogspot.com



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved