M. David Peterson calls me on the carpet for not really solving ALL of Scoble’s problems and for not using a fancy algorithm to boot. I was waiting for someone to expose me and it appears it’s happened.
Anywho, he has a nice post on how he solved Scoble’s problem using XSLT. He ends up with 29 lines of XML (data + transform) compared to my 48 lines of Linq code. Of course I like my version much more since it uses Linq but his post does point out an important point, while Linq and Linq to XML do an amazing job of providing a consistent programming API for accessing all sorts of data there may be times when XSLT (or some other technology) are more – maybe not more but just as – appropriate. I for one really like what Linq provides. The fact that I can write what is essentially transform code in my preferred programming language (C#) using my preferred data query api (Linq) and do so rather quickly rocks.
tags: linq, linqtoxml, xlinq, xslt