XML.com 
 Published on XML.com http://www.xml.com/pub/a/98/09/exexegesis-3.html
See this if you're having trouble printing code examples

 

Conclusion: How Much Work Was It?
By Tim Bray
September 12, 1998

How Much Work Was It?

Building the Annotated Spec required writing quite a lot of Java code. Here's a summary of the lines of code required, which is a poor way to measure the amount of work. I didn't keep track of the amount of time it took, because I was writing and debugging the code as I wrote the annotations, and doing both of these things in parallel with a lot of traveling and lecturing and consulting.

Lines of code

Java File

Function

403

Annotate.java

Mainline, bookkeeping

52Link.java All the information describing a link from the annotation file into the XML spec
276XLink.java XLink processing
82XPStep.java XPointer step processing
303XPointer.java XPointer processing
1116 Total

This is nowhere near being a complete implementation of XLink and XPointer. It contains just enough logic to solve this particular application's problems.

Lessons

From a commercial point of view, the Annotated Spec is a huge success. We should be cautious in drawing conclusions from this exercise, since the average hypertext creator is not going to regard writing 1100-plus lines of Java as a normal part of the authoring process. I think, though, that some useful lessons do emerge from this work:

Copyright © Tim Bray, 1998. All rights reserved.

XML.com Copyright © 1998-2006 O'Reilly Media, Inc.