<?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: CodeKata 4: Data Munging</title>
	<atom:link href="http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/</link>
	<description>Made with only the finest 1's and 0's</description>
	<lastBuildDate>Thu, 26 Jan 2012 21:20:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Weekly Digest for January 3rd &#124; William Stearns</title>
		<link>http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/comment-page-1/#comment-31764</link>
		<dc:creator>Weekly Digest for January 3rd &#124; William Stearns</dc:creator>
		<pubDate>Mon, 04 Jan 2010 04:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=682#comment-31764</guid>
		<description>[...] Shared Brian Jones: CodeKata 4: Data Munging. [...]</description>
		<content:encoded><![CDATA[<p>[...] Shared Brian Jones: CodeKata 4: Data Munging. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m0j0</title>
		<link>http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/comment-page-1/#comment-31230</link>
		<dc:creator>m0j0</dc:creator>
		<pubDate>Tue, 29 Dec 2009 21:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=682#comment-31230</guid>
		<description>Tests? Care to clarify?</description>
		<content:encoded><![CDATA[<p>Tests? Care to clarify?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herberth Ama!ral</title>
		<link>http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/comment-page-1/#comment-31200</link>
		<dc:creator>Herberth Ama!ral</dc:creator>
		<pubDate>Tue, 29 Dec 2009 12:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=682#comment-31200</guid>
		<description>Cool. But.... where is the tests?!</description>
		<content:encoded><![CDATA[<p>Cool. But&#8230;. where is the tests?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m0j0</title>
		<link>http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/comment-page-1/#comment-31199</link>
		<dc:creator>m0j0</dc:creator>
		<pubDate>Tue, 29 Dec 2009 12:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=682#comment-31199</guid>
		<description>That last bit about using min() on the iterator stream is cool - thanks for posting that. The &#039;line[:1] in string.digits&#039;... I&#039;d still have to strip it -- I believe both data sets have lines starting with tabs/whitespace. Other than that it&#039;s a good idea -- I think your way is more readable. 

Using a function for the fields would work, and in a larger piece of code it would be a real no-brainer, but I think there&#039;s a threshold where if the code is under a certain number of lines or something, then adding function calls makes things more complex than is necessary. I guess it&#039;s an academic exercise, though, so.... you&#039;re right :)</description>
		<content:encoded><![CDATA[<p>That last bit about using min() on the iterator stream is cool &#8211; thanks for posting that. The &#8216;line[:1] in string.digits&#8217;&#8230; I&#8217;d still have to strip it &#8212; I believe both data sets have lines starting with tabs/whitespace. Other than that it&#8217;s a good idea &#8212; I think your way is more readable. </p>
<p>Using a function for the fields would work, and in a larger piece of code it would be a real no-brainer, but I think there&#8217;s a threshold where if the code is under a certain number of lines or something, then adding function calls makes things more complex than is necessary. I guess it&#8217;s an academic exercise, though, so&#8230;. you&#8217;re right <img src='http://www.protocolostomy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Dalke</title>
		<link>http://www.protocolostomy.com/2009/12/28/codekata-4-data-munging/comment-page-1/#comment-31183</link>
		<dc:creator>Andrew Dalke</dc:creator>
		<pubDate>Tue, 29 Dec 2009 07:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=682#comment-31183</guid>
		<description>Here&#039;s a few changes you might try. Replace &quot;line.strip().startswith(tuple(string.digits)) with &quot;line[:1] in string.digits&quot;

Use a function to get the fields for each of the &quot;football&quot; and &quot;weather&quot; cases, then pull the  &quot;if &#039;....&#039; in sys.argv[1]:&quot; out of the loop and instead use the appropriate field extraction function.

Even more unusual, convert the code to a function which returns each diff and value through an iterator, then use min() on the iterator stream from the generator. It isn&#039;t cleaner or shorter than what you have (I think it&#039;s longer and more complex, actually), but it&#039;s an interesting variant.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a few changes you might try. Replace &#8220;line.strip().startswith(tuple(string.digits)) with &#8220;line[:1] in string.digits&#8221;</p>
<p>Use a function to get the fields for each of the &#8220;football&#8221; and &#8220;weather&#8221; cases, then pull the  &#8220;if &#8216;&#8230;.&#8217; in sys.argv[1]:&#8221; out of the loop and instead use the appropriate field extraction function.</p>
<p>Even more unusual, convert the code to a function which returns each diff and value through an iterator, then use min() on the iterator stream from the generator. It isn&#8217;t cleaner or shorter than what you have (I think it&#8217;s longer and more complex, actually), but it&#8217;s an interesting variant.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

