News for hackers. Stuff that matters.
Re:Open Letter to XSLT Fans by olalonde on Saturday April 07, 2012 @01:10PM (#3811354)
Weird, I nominated XSLT as my "most hated language" in the "What's your most hated language" poll a few days ago and got a few down votes. Now, this rant against XSLT is on the front page... Go figure!
Re:Open Letter to XSLT Fans by mindcrime on Saturday April 07, 2012 @01:55PM (#3811527)
In a world where RPG/III, RPG/400, RPG/IV, etc. exist, how can XSLT be anyone's "most hated language?" :-)

All joking aside, I like XSLT just fine, as long as it's use is limited to exactly what it's good at: transforming XML documents from one schema to another. Yes, it's verbose if you write it by hand, and yes it would be nice to have something with all the power of XSLT and with a lighter syntax, but XSLT is hardly the worst thing around.

Re:Open Letter to XSLT Fans by archangel_one on Saturday April 07, 2012 @02:53PM (#3811745)
I think it's probably the worst language I've had the misfortune of having to write anything in. Certainly it was the one I enjoyed the least (even slightly less than Fortran 90 which was somewhat of an achievement), and I think it wins my "most hated language" because of the intersection of awfulness and the nonzero chance that I'd have to program in it. While there are almost certainly worse languages - COBOL certainly appears to be one - there's effectively zero chance that I'll ever write anything in them, hence they're more of an amusing curiosity than something I can hate. Whereas I've had to spend interminable days on XSLT in the past and unfortunately I can't say for sure that I'll never have to again.
Re:Open Letter to XSLT Fans by batista on Saturday April 07, 2012 @03:05PM (#3811789)
Your only argument is "I had to use it and I hated it". Hardly an argument.
Re:Open Letter to XSLT Fans by andrewflnr on Saturday April 07, 2012 @03:16PM (#3811831)
We're talking about hate. Do they need an argument? Considering we're talking about hypothetical answers to an opinion poll, I think not.
Re:Open Letter to XSLT Fans by batista on Saturday April 07, 2012 @05:56PM (#3812253)
>We're talking about hate. Do they need an argument?

Blind hate is hardly something desirable. I'd say, yes, even hate needs an argument.

Re:Open Letter to XSLT Fans by archangel_one on Saturday April 07, 2012 @06:28PM (#3812342)
I would at least like to claim that it wasn't blind hate; I have used XSLT before so it's partially sighted at least. And really, it's tongue in cheek. XSLT is a programming language, "hate" for such a thing only really goes as far as "I don't like working with it and hope I don't have to again".
Re:Open Letter to XSLT Fans by andrewflnr on Sunday April 08, 2012 @12:51AM (#3813104)
Right. For our purposes, you no more need an argument to hate XSLT than you need one to hate chocolate. You tried it and didn't like it. Case closed. ;)
Re:Open Letter to XSLT Fans by mdaniel on Saturday April 07, 2012 @02:51PM (#3811735)
> it would be nice to have something with all the power of XSLT and with a lighter syntax

That thing you are looking for is XQuery (http://www.w3.org/TR/xquery/) and it is fantastic.

Don't be fooled by the name: it can produce content, too.

Re:Open Letter to XSLT Fans by mindcrime on Saturday April 07, 2012 @04:08PM (#3811963)
Yeah, I'm a little behind on XQuery, as I haven't been doing a lot of XML related work for the past couple of years, but I'm just now starting to play in that world again. I have some some reading up on XQuery recently and it's looking like neat stuff. I didn't realize that it was in any way a potential substitute for XSLT though. Guess I have some more studying to do...
Re:Open Letter to XSLT Fans by codesuela on Saturday April 07, 2012 @03:38PM (#3811892)
to be honest I wasn't even aware that something like XSLT existed up until now, when I saw articles referring to it I assumed it was a XML path descriptor like XPath

edit: now that I've looked at it I remember seeing it before. I thought it was some crazy custom language invented by the authors of a script and it sent me running. Good to know that that's XSLT