[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: parsing markup with Perl
My only encounter with Perl was equally negative. I was called in as a consultant to rescue a system that had serious performance problems (like response times of two minutes for customers checking the balance on their accounts). It all turned out to be due to one module, written in Perl, which was doing regex-based transformations on XHTML pages. It took a while to work out what the 500 lines of Perl was trying to do, but in the end we rewrote it (using Java DOM, I believe - the project wasn't a good place right then for anything innovative) and solved all the problems at a stroke. Regular expressions seem to have two problems. The first is that they are unreadable. Anything but the simplest regexes are impenetrable to anyone reading the code, and often to the person writing it, which is why debugging is so hard. The second is that performance is highly unpredictable except to people who really understand the technology extremely well. I think we should treat Perl a bit like certain pesticides; something you're only allowed to use if you've been through the right training courses and have acquired a license, which has to be renewed every year by passing exams. Michael Kay Saxonica
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|