<?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: Test Driven Development in Python</title> <atom:link href="http://streamhacker.com/2009/02/05/test-driven-development-in-python/feed/" rel="self" type="application/rss+xml" /><link>http://streamhacker.com/2009/02/05/test-driven-development-in-python/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link> <description>Weotta be Hacking</description> <lastBuildDate>Tue, 24 Aug 2010 14:34:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com" /> <atom:link rel="hub" href="http://superfeedr.com/hubbub" /> <item><title>By: Jacob</title><link>http://streamhacker.com/2009/02/05/test-driven-development-in-python/comment-page-1/#comment-20</link> <dc:creator>Jacob</dc:creator> <pubDate>Fri, 06 Feb 2009 18:48:35 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.wordpress.com/?p=151#comment-20</guid> <description>The workflow I&#039;m suggesting is a bit different: write the doctests in the docstring at the same time you write the code, then run it to see if you get the expected results. I see doctests as hitting two birds with one stone: working tests plus free documentation.</description> <content:encoded><![CDATA[<p>The workflow I&#8217;m suggesting is a bit different: write the doctests in the docstring at the same time you write the code, then run it to see if you get the expected results. I see doctests as hitting two birds with one stone: working tests plus free documentation.</p> ]]></content:encoded> </item> <item><title>By: foo</title><link>http://streamhacker.com/2009/02/05/test-driven-development-in-python/comment-page-1/#comment-19</link> <dc:creator>foo</dc:creator> <pubDate>Fri, 06 Feb 2009 17:59:25 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.wordpress.com/?p=151#comment-19</guid> <description>I&#039;d say the natural workflow for doctests is demonstrate the use of a module in interactive interpreter and just copy-paste the results as documentation. TDD beats the purpose of this free documentation, and thus other testing methods might be more appropriate.</description> <content:encoded><![CDATA[<p>I&#8217;d say the natural workflow for doctests is demonstrate the use of a module in interactive interpreter and just copy-paste the results as documentation. TDD beats the purpose of this free documentation, and thus other testing methods might be more appropriate.</p> ]]></content:encoded> </item> <item><title>By: Jacob</title><link>http://streamhacker.com/2009/02/05/test-driven-development-in-python/comment-page-1/#comment-18</link> <dc:creator>Jacob</dc:creator> <pubDate>Fri, 06 Feb 2009 16:47:37 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.wordpress.com/?p=151#comment-18</guid> <description>I agree with your points about doctests as documentation. In my experience, there&#039;s many times when those are all the tests you need. If the doctest examples run, then you don&#039;t need to write any extra unit tests. And for those cases of simple input-output functions, doctests can be integrated into your TDD practices.</description> <content:encoded><![CDATA[<p>I agree with your points about doctests as documentation. In my experience, there&#8217;s many times when those are all the tests you need. If the doctest examples run, then you don&#8217;t need to write any extra unit tests. And for those cases of simple input-output functions, doctests can be integrated into your TDD practices.</p> ]]></content:encoded> </item> <item><title>By: oblivious</title><link>http://streamhacker.com/2009/02/05/test-driven-development-in-python/comment-page-1/#comment-17</link> <dc:creator>oblivious</dc:creator> <pubDate>Fri, 06 Feb 2009 07:49:32 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.wordpress.com/?p=151#comment-17</guid> <description>TDD is great, but nosetests, not doctest, is the way to go for that.I love doctest, but I don&#039;t think anybody should be using it for TDD.  The syntax gets tricky for embedded strings, and it gets awkward if you need to refer to module globals.doctest is for literate, reliable documentation.  The worst kind of doc is one that is no longer true.  With a doctest example, the reader knows that the docs are still correct since the doctests still pass.  It also enforces a uniform standard for displaying examples, which improves readability.  So don&#039;t stop using doctests, but try something else for TDD.</description> <content:encoded><![CDATA[<p>TDD is great, but nosetests, not doctest, is the way to go for that.</p><p>I love doctest, but I don&#8217;t think anybody should be using it for TDD.  The syntax gets tricky for embedded strings, and it gets awkward if you need to refer to module globals.</p><p>doctest is for literate, reliable documentation.  The worst kind of doc is one that is no longer true.  With a doctest example, the reader knows that the docs are still correct since the doctests still pass.  It also enforces a uniform standard for displaying examples, which improves readability.  So don&#8217;t stop using doctests, but try something else for TDD.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: streamhacker.com @ 2010-09-03 09:16:06 -->