Mar 18 2009

An Ode to Revision Control

A project I’m work­ing on had things that needed to be printed. Ini­tially, I used FPDF to gen­er­ate and out­put a PDF doc­u­ment, which was rea­son­ably pretty and very printable.

Some­where along the way, I lost my mind and re-​implemented these as HTML doc­u­ments. I don’t know what came over me. There was a rea­son for it at the time. HTML doc­u­ments are a pain in the back­side to print, most of the time — browsers usu­ally feel oblig­ated to stick head­ers and foot­ers on them with URLs and dates, and in Fire­fox at least, these are a pain to turn off.

So, the call was made to turn them back to PDFs. For most of them this wasn’t too hard, or they hadn’t been imple­mented in the first place and needed to be cre­ated from scratch in FPDF. One of them was a bit ornate, and had been a PDF before — what a pain, to have wasted all that effort!

Oh-​hoh! But I use sub­ver­sion. My effort was not wasted. Revert to revi­sion 190, code recov­ered. Bam! I love you, Subversion.

If you’re the tech­no­log­i­cal soft­ware devel­oper type, you might be won­der­ing now why I’m not using git or bazaar or the like — one of the new dis­trib­uted RCS tools. Quite hon­estly, they’re overkill for me — I have at most 2–3 other peo­ple work­ing on my projects, they’re not open source projects that the world will see, so there’s really no point to set­ting up a new RCS when Sub­ver­sion does the trick.

The rest of you are already smil­ing and nod­ding at the crazy computer-​man. :D