<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Ever Use Example Code From a Book That Did Not Work?</title>
	<atom:link href="http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/</link>
	<description>Cory von Wallenstein's Blog</description>
	<pubDate>Thu, 09 Sep 2010 19:53:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: At Home Jobs</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-270</link>
		<dc:creator>At Home Jobs</dc:creator>
		<pubDate>Sat, 19 Jun 2010 23:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-270</guid>
		<description>Your site is excellent! The information you provide has helped me tremendously. Thank you for all of your time &#38; work. Best Regards.</description>
		<content:encoded><![CDATA[<p>Your site is excellent! The information you provide has helped me tremendously. Thank you for all of your time &amp; work. Best Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Moglia</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-267</link>
		<dc:creator>Cory Moglia</dc:creator>
		<pubDate>Wed, 16 Jun 2010 06:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-267</guid>
		<description>thanks to you for the previous entry.</description>
		<content:encoded><![CDATA[<p>thanks to you for the previous entry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lincoln Davis</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-257</link>
		<dc:creator>Lincoln Davis</dc:creator>
		<pubDate>Fri, 01 Jan 2010 03:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-257</guid>
		<description>&lt;B&gt;Tech Question:
&lt;/B&gt;Q</description>
		<content:encoded><![CDATA[<p><b>Tech Question:<br />
</b>Q</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marge</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-85</link>
		<dc:creator>Marge</dc:creator>
		<pubDate>Thu, 23 Oct 2008 01:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-85</guid>
		<description>People should read this.</description>
		<content:encoded><![CDATA[<p>People should read this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-16</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 08 Jan 2008 20:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-16</guid>
		<description>I built my DocBook files by embedding elements that would retrieve a file and look for commented "snippets" in any of a couple source control systems; the same thing in OOo (but via OOo scripting). It's the same way the Wikis I use pull in external snippets and seemed the easiest way for my documentation and books.</description>
		<content:encoded><![CDATA[<p>I built my DocBook files by embedding elements that would retrieve a file and look for commented &#8220;snippets&#8221; in any of a couple source control systems; the same thing in OOo (but via OOo scripting). It&#8217;s the same way the Wikis I use pull in external snippets and seemed the easiest way for my documentation and books.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory von Wallenstein</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-14</link>
		<dc:creator>Cory von Wallenstein</dc:creator>
		<pubDate>Tue, 08 Jan 2008 17:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-14</guid>
		<description>Certainly. The biggest differences to previous approaches and this approach are focused around ease of use both for the programmer and the technical writer, and for level of control of code selection.

DocBook, for example, makes it pretty easy to pull in entire outside files, but that is only useful when you're showing a complete example program. What if you're describing a method name inline in the content? What if you wanted to say:

"The doPowerOff method is used for doing A, B, and C."

With other approaches, you really don't have a way to say "insert this method name here" in the document such that when the underlying code is inevitably refactored (perhaps to doServerPowerOff), the references to those method names get updated inline too.

Even if you had an external file that just had that method name in it... for this example, with Java, that would not be valid and compilable, so its usefulness diminishes.

Even specifying by line numbers is far, far too brittle. By having the code identified with context-relevant tags, life is easier for the programmer moving code around, and the technical writer trying to figure out what-does-what.

Really, we needed a way to get down to an atomic level of control for what code gets pulled into the documentation, and we needed a way to keep the code itself valid and testable by our build environment, and most importantly, we needed to support code refactoring so the changes would automatically cascade throughout our documentation.</description>
		<content:encoded><![CDATA[<p>Certainly. The biggest differences to previous approaches and this approach are focused around ease of use both for the programmer and the technical writer, and for level of control of code selection.</p>
<p>DocBook, for example, makes it pretty easy to pull in entire outside files, but that is only useful when you&#8217;re showing a complete example program. What if you&#8217;re describing a method name inline in the content? What if you wanted to say:</p>
<p>&#8220;The doPowerOff method is used for doing A, B, and C.&#8221;</p>
<p>With other approaches, you really don&#8217;t have a way to say &#8220;insert this method name here&#8221; in the document such that when the underlying code is inevitably refactored (perhaps to doServerPowerOff), the references to those method names get updated inline too.</p>
<p>Even if you had an external file that just had that method name in it&#8230; for this example, with Java, that would not be valid and compilable, so its usefulness diminishes.</p>
<p>Even specifying by line numbers is far, far too brittle. By having the code identified with context-relevant tags, life is easier for the programmer moving code around, and the technical writer trying to figure out what-does-what.</p>
<p>Really, we needed a way to get down to an atomic level of control for what code gets pulled into the documentation, and we needed a way to keep the code itself valid and testable by our build environment, and most importantly, we needed to support code refactoring so the changes would automatically cascade throughout our documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-13</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 08 Jan 2008 16:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.standingonthebrink.com/index.php/ever-use-example-code-from-a-book-that-did-not-work/#comment-13</guid>
		<description>I've been doing the same thing with OpenOffice.org for a few years and we've been doing it with DocBook (and other various XML formats) for some time now. Several Wikis support pulling in code snippets via various mechanisms.

Is there something particularly new about your approach?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been doing the same thing with OpenOffice.org for a few years and we&#8217;ve been doing it with DocBook (and other various XML formats) for some time now. Several Wikis support pulling in code snippets via various mechanisms.</p>
<p>Is there something particularly new about your approach?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
