<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to write a better book (or just better docs!)</title>
	<atom:link href="http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/feed/" rel="self" type="application/rss+xml" />
	<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/</link>
	<description>Thinking about programming in new ways</description>
	<lastBuildDate>Wed, 28 Jul 2010 19:00:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Tobin Harris</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-274768</link>
		<dc:creator>Tobin Harris</dc:creator>
		<pubDate>Wed, 19 Nov 2008 15:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-274768</guid>
		<description>I&#039;ve been curious about this too. I&#039;ve settled on Scrivener (OSX) which can export to MultiMarkdown ready for LaTeX. I can generate a PDF preview of the book in about 5 seconds and a few keypresses. And, MultiMarkdown also allows you to go to HTML or RTF.

Next, I next need to work out how to pull source code in for code listings in the book. I&#039;m thinking of writing a script that will detect special comment tags in my code and then import them in. 

I&#039;m really curious about how the Pragmatic Press are doing things. Does anyone know what they use?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been curious about this too. I&#8217;ve settled on Scrivener (OSX) which can export to MultiMarkdown ready for LaTeX. I can generate a PDF preview of the book in about 5 seconds and a few keypresses. And, MultiMarkdown also allows you to go to HTML or RTF.</p>
<p>Next, I next need to work out how to pull source code in for code listings in the book. I&#8217;m thinking of writing a script that will detect special comment tags in my code and then import them in. </p>
<p>I&#8217;m really curious about how the Pragmatic Press are doing things. Does anyone know what they use?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Arndt</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-142265</link>
		<dc:creator>Christopher Arndt</dc:creator>
		<pubDate>Fri, 14 Mar 2008 23:11:12 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-142265</guid>
		<description>The new Python standard documentation system, sphinx, already has directives to include code blocks from external files. Maybe we should have a look at it, how easy/hard it is to expand it&#039;s capabilities to do what you propose. It produces beautiful docs from the rest sources and has good support for both reference and tutorial style docs.</description>
		<content:encoded><![CDATA[<p>The new Python standard documentation system, sphinx, already has directives to include code blocks from external files. Maybe we should have a look at it, how easy/hard it is to expand it&#8217;s capabilities to do what you propose. It produces beautiful docs from the rest sources and has good support for both reference and tutorial style docs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-141982</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Fri, 14 Mar 2008 09:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-141982</guid>
		<description>Hi,

I know that Bruce Eckel uses its own method and python scripts to extract code from his &quot;Thinking in Java&quot; book and test them. You might want to contact him.

Best regards,

-- Jean</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I know that Bruce Eckel uses its own method and python scripts to extract code from his &#8220;Thinking in Java&#8221; book and test them. You might want to contact him.</p>
<p>Best regards,</p>
<p>&#8211; Jean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Ramm</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-141096</link>
		<dc:creator>Mark Ramm</dc:creator>
		<pubDate>Wed, 12 Mar 2008 14:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-141096</guid>
		<description>Rene, 

Yea, doctest is great. But I can&#039; actually imagine trying to write an entire book in doctest -- there are just too many limitations.  Particularly when it comes to write extended tutorials on how to write large projects.  You really can&#039;t do that all in an interpreter session.


And even for smaller documentation projects, doctest can sometimes feel a little awkward as a full documentation tool. doctest&#039;s use of the interpreter session metaphor can force your example code to look strangely unlike the code you would actually write when using the library.</description>
		<content:encoded><![CDATA[<p>Rene, </p>
<p>Yea, doctest is great. But I can&#8217; actually imagine trying to write an entire book in doctest &#8212; there are just too many limitations.  Particularly when it comes to write extended tutorials on how to write large projects.  You really can&#8217;t do that all in an interpreter session.</p>
<p>And even for smaller documentation projects, doctest can sometimes feel a little awkward as a full documentation tool. doctest&#8217;s use of the interpreter session metaphor can force your example code to look strangely unlike the code you would actually write when using the library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene Dudfield</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140914</link>
		<dc:creator>Rene Dudfield</dc:creator>
		<pubDate>Wed, 12 Mar 2008 04:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140914</guid>
		<description>doctest is pretty much designed for this type of stuff.

doctests are documentation that are also a tests :)

http://docs.python.org/lib/module-doctest.html


cheers,</description>
		<content:encoded><![CDATA[<p>doctest is pretty much designed for this type of stuff.</p>
<p>doctests are documentation that are also a tests :)</p>
<p><a href="http://docs.python.org/lib/module-doctest.html" rel="nofollow">http://docs.python.org/lib/module-doctest.html</a></p>
<p>cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Kuhlman</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140887</link>
		<dc:creator>Ken Kuhlman</dc:creator>
		<pubDate>Wed, 12 Mar 2008 02:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140887</guid>
		<description>I haven&#039;t had a chance to actually play with it yet, but I&#039;ve got Crunchy filed in this space.

http://aroberge.blogspot.com/2008/01/automated-documentation-code-testing.html
http://aroberge.blogspot.com/2008/02/automated-documentation-code-testing.html


Of course, I&#039;ve never worried myself about writing a book, and that problem probably raises a huge set of formating issues, but the Crunchy developers seem eager to tackle new challenges.  

FWIW, I think Johannes Woolard will be presenting about Crunchy at PyCon.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t had a chance to actually play with it yet, but I&#8217;ve got Crunchy filed in this space.</p>
<p><a href="http://aroberge.blogspot.com/2008/01/automated-documentation-code-testing.html" rel="nofollow">http://aroberge.blogspot.com/2008/01/automated-documentation-code-testing.html</a><br />
<a href="http://aroberge.blogspot.com/2008/02/automated-documentation-code-testing.html" rel="nofollow">http://aroberge.blogspot.com/2008/02/automated-documentation-code-testing.html</a></p>
<p>Of course, I&#8217;ve never worried myself about writing a book, and that problem probably raises a huge set of formating issues, but the Crunchy developers seem eager to tackle new challenges.  </p>
<p>FWIW, I think Johannes Woolard will be presenting about Crunchy at PyCon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Horn</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140723</link>
		<dc:creator>Kevin Horn</dc:creator>
		<pubDate>Tue, 11 Mar 2008 17:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140723</guid>
		<description>You could build something like this around docutils, I think.  It has all kinds of hooks, etc. which allow various types of processing on the text of the document.  I think it should be possible to kick off a test harness of some kind using it.  Or at least easily grab code from your document and test it.

That said, it may not be the _best_ option, as the internals of docutils are something of a beast...and the documentation is a bit scattered.</description>
		<content:encoded><![CDATA[<p>You could build something like this around docutils, I think.  It has all kinds of hooks, etc. which allow various types of processing on the text of the document.  I think it should be possible to kick off a test harness of some kind using it.  Or at least easily grab code from your document and test it.</p>
<p>That said, it may not be the _best_ option, as the internals of docutils are something of a beast&#8230;and the documentation is a bit scattered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Bennett</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140464</link>
		<dc:creator>James Bennett</dc:creator>
		<pubDate>Tue, 11 Mar 2008 06:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140464</guid>
		<description>I&#039;ve been fighting a bit with this myself, and haven&#039;t yet found a really good solution. For now I just keep the code open in one buffer in Emacs, the chapter I&#039;m working on in another, and yank bits between them as needed. If you&#039;d like to solve this problem on behalf of Python book authors everywhere, I&#039;ll buy you a beer ;)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been fighting a bit with this myself, and haven&#8217;t yet found a really good solution. For now I just keep the code open in one buffer in Emacs, the chapter I&#8217;m working on in another, and yank bits between them as needed. If you&#8217;d like to solve this problem on behalf of Python book authors everywhere, I&#8217;ll buy you a beer ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catherine Devlin</title>
		<link>http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140393</link>
		<dc:creator>Catherine Devlin</dc:creator>
		<pubDate>Tue, 11 Mar 2008 03:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://compoundthinking.com/blog/index.php/2008/03/11/how-to-write-a-better-book-or-just-better-docs/#comment-140393</guid>
		<description>The Red Bean Mercurial book mentions that its code samples are live and continually tested - I wonder if they&#039;d share their test harness.

http://hgbook.red-bean.com/hgbookli3.html#x4-50000.2</description>
		<content:encoded><![CDATA[<p>The Red Bean Mercurial book mentions that its code samples are live and continually tested &#8211; I wonder if they&#8217;d share their test harness.</p>
<p><a href="http://hgbook.red-bean.com/hgbookli3.html#x4-50000.2" rel="nofollow">http://hgbook.red-bean.com/hgbookli3.html#x4-50000.2</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
