I've been amused lately by many of the "WTF were they thinking when they wrote it" posts I've been seeing lately, especially on CodeBetter. This came to mind as I looked at a Word doc I was vainly trying to convert to HTML for posting. No, don't worrry, this isn't another rant about Word 2003's "HTML" output. Instead, it is what people do when they are formatting documents. Here's a excerpt:
Arial, 18pt Bold (1 instance)
Arial, 10pt Bold, Gray (2 instances)
11pt bold, before 6pt (5 instances)
Arial, 13pt Bold, Double line above (18 instances)
etc.
In short, we have a document where the formatting has been done piecemeal. "The code" (if you will) has been hacked together without subroutines, naming conventions or other planning. Using styles isn't simply a good idea, it fulfills the same purpose of proper code formatting -- it makes maintenance and refactoring of the "code" easier and less error-prone. The number of times I've heard, "I deleted one character, and everything reformatted" is a side-effect of this behaviour. Word can be downright messy about all those little formatting codes you're forcing in there.
Having a clean stylesheet, and learning how to use it, is not just helpful, it's yet another sign you care about quality.
I remember back to "the days" when I would get submissions from authors for MSDN. There are some authors I would look forward to working with their documents, although I'll admit that it was partly as I'd always learn something from reading the work of Scott, Bill, Dino, Stephen, Steven, Karl, Victor, Michele, etc. Their code was clean, and so were their docs. The MSDN editors would frequently note that "there was little they had to do" to get the documents ready for publishing. Back to this document, I've started on it three times today, and I keep pausing (such as this post) as it's mind and soul hurtful work.
So, the next time you feel like complaining about a bad sample or coding technique, remember that there are other examples of sloppiness and incorrect technique out there.
Print | posted on Friday, May 19, 2006 1:28 AM