<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Handwriting: Tag documentation</title>
    <link>http://blog.handwire.com/articles/tag/documentation?tag=documentation</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>A blog by Handwire</description>
    <item>
      <title>Habitual</title>
      <description>&lt;p&gt;I’m consumed by guilt.&lt;/p&gt;

&lt;p&gt;Often toward the end of a project I realize that more documentation is needed, and I go through the overwhelming process of writing a bunch en masse. Every time this happens, I find myself thinking &amp;#8220;Next time I’m doing this as I go&amp;#8221;. Yet next time comes around and I’m in project start mode and it seems silly writing docs when everything is changing rapidly. I’ll wait until things stabilize a bit…&lt;/p&gt;

&lt;p&gt;And so I sit again trying to document months of work in a couple of days.&lt;/p&gt;

&lt;p&gt;The exact same thing happens with unit testing, and here is where I think I’ve finally discovered a solution. I’ve heard from two different people lately about projects where the programmer wasn’t allowed to check in code without unit tests included. No excuses. And I’ve been told it becomes second nature after a while.&lt;/p&gt;

&lt;p&gt;Waiting until &amp;#8216;things stabilize&amp;#8217; is a fallacy. By the time a project stabilizes you have a pile of documentation to write, and unit tests that aren&amp;#8217;t written early probably don’t get written. For my next project I’m starting a class definition with documentation first, moving on to the unit test, and only after those are done writing the actual code. Much like learning to touch type, this is going to be excruciatingly painful at first but in the end I’ll have full (and accurate) documentation and tests.&lt;/p&gt;</description>
      <pubDate>Mon, 03 Apr 2006 22:21:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:5b61fddd-26bd-46d0-b507-b65fb255bd28</guid>
      <author>Skip</author>
      <link>http://blog.handwire.com/articles/2006/04/03/habitual</link>
      <category>documentation</category>
      <category>testing</category>
      <category>programming</category>
      <trackback:ping>http://blog.handwire.com/articles/trackback/44</trackback:ping>
    </item>
  </channel>
</rss>
