LWN.net Logo

Stanse

Stanse

Posted Oct 16, 2009 4:12 UTC (Fri) by jordanb (guest, #45668)
Parent article: Stanse

I love it how if you're a Java programmer, XML is the hammer and just about anything requiring any sort of meta-data is the screw.

There's a static analysis tool for Ada that was released as free software some time ago, called SPARK. It uses annotations embedded in comments. That seems the most sane way to go. Trying to maintain parallel XML files for annotations seems like pure horror. And since you have to parse the C file anyway it's no more work to provide a mechanism to keep the annotations inline.


(Log in to post comments)

Stanse

Posted Oct 16, 2009 5:08 UTC (Fri) by cpeterso (guest, #305) [Link]

re ADA SPARK: Splint (LCLint) and Linus' own Sparse are a similar annotation checkers for C. They are promising but require a lot of patience.

Stanse

Posted Oct 21, 2009 3:37 UTC (Wed) by pflugstad (subscriber, #224) [Link]

I love it how if you're a Java programmer, XML is the hammer and just about anything requiring any sort of meta-data is the screw.
Or even, if there is no meta-data, XML is still the answer for many Java programmers. 1000+ lines of XML to configure a simple GUI window that is just displaying a fixed data structure.

Stanse

Posted Oct 22, 2009 0:02 UTC (Thu) by nix (subscriber, #2304) [Link]

Hah. Look up XQueryX if you want unreadable. If the job is scripting, an
XML parse tree is *really really* not the answer.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds