The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Even among geeks I think I'm a geek by SnappingTurtle 2009-05-08 12:00:38
So I'm writing this long, tedious technical document that references a long, not-as-tedious program. The document includes blocks of code from the program ("...the following code provides an example of ...") and also references specific lines of code ("...lines 2301-2309 calculate the new value of...").

I knew that trying to copy and paste and correctly reference all those lines of code would drive me crazy. I'd never quite believe that I copied and referenced correctly. Also, no matter how sure I am that the code is finalized, there always seems to be one more edit that changes all the line numbers.

So with a little Perl and OpenOffice magic I basically created my own little documentation system in which I can give blocks and lines names right in the code. Then I can set sections and fields in an OpenOffice document to reference blocks and lines by those names. Click click click and my blocks and references all work. If I edit the code then click click click everything jives again.

BTW, I now fully expect someone to mention that there's already some system that does this. If experience is a guide, it will probably be a system with lots of features that don't quite exactly do what I need and will be so confusingly documented that I would have ended spending much more time finding out I can't get it to work then I did just rolling my own. Ah, but that's the bitter pessimist in me coming out. Feel free to prove me wrong.
[ Reply ]
  Bibtex? ;) by jpprater2009-05-08 12:37:57

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)