<?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: multiple return values and refactoring javascript</title>
	<atom:link href="http://intwoplacesatonce.com/2010/04/multiple-return-values-and-refactoring-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://intwoplacesatonce.com/2010/04/multiple-return-values-and-refactoring-javascript/</link>
	<description>instead of a rewrite</description>
	<lastBuildDate>Fri, 09 Dec 2011 10:18:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Coding: Generalising too early at Mark Needham</title>
		<link>http://intwoplacesatonce.com/2010/04/multiple-return-values-and-refactoring-javascript/comment-page-1/#comment-221</link>
		<dc:creator>Coding: Generalising too early at Mark Needham</dc:creator>
		<pubDate>Fri, 30 Apr 2010 07:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://intwoplacesatonce.com/?p=103#comment-221</guid>
		<description>[...] Cameron, who first taught me this approach, recently wrote a post describing how he removed some duplication in JavaScript code and you can see from the initial example in his post that he waited until he was exactly sure [...]</description>
		<content:encoded><![CDATA[<p>[...] Cameron, who first taught me this approach, recently wrote a post describing how he removed some duplication in JavaScript code and you can see from the initial example in his post that he waited until he was exactly sure [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DCam</title>
		<link>http://intwoplacesatonce.com/2010/04/multiple-return-values-and-refactoring-javascript/comment-page-1/#comment-220</link>
		<dc:creator>DCam</dc:creator>
		<pubDate>Thu, 29 Apr 2010 02:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://intwoplacesatonce.com/?p=103#comment-220</guid>
		<description>That&#039;s very true! I think I&#039;m pretty deep in to a habit of only removing duplication once I have at least about 3 example of it in front of me. It&#039;s a bit more typing up front, but typing is not the bottleneck in software development. Or so I&#039;ve heard.

Once I do get around to eliminating the duplication, it&#039;s usually a single regex to get all the call sites sorted out. I think that micro-automation makes the approach efficient enough to be viable. Not to mention the efficiency of getting the code done well.</description>
		<content:encoded><![CDATA[<p>That&#8217;s very true! I think I&#8217;m pretty deep in to a habit of only removing duplication once I have at least about 3 example of it in front of me. It&#8217;s a bit more typing up front, but typing is not the bottleneck in software development. Or so I&#8217;ve heard.</p>
<p>Once I do get around to eliminating the duplication, it&#8217;s usually a single regex to get all the call sites sorted out. I think that micro-automation makes the approach efficient enough to be viable. Not to mention the efficiency of getting the code done well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Needham</title>
		<link>http://intwoplacesatonce.com/2010/04/multiple-return-values-and-refactoring-javascript/comment-page-1/#comment-219</link>
		<dc:creator>Mark Needham</dc:creator>
		<pubDate>Wed, 28 Apr 2010 23:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://intwoplacesatonce.com/?p=103#comment-219</guid>
		<description>Another thing you seem to have done quite well with this example is to not try and pull out the duplication too early but to instead let it stay there until a more obvious pattern of duplication emerges.

Pulling the duplication out too early as you point out seems to make the code way less &#039;malleable&#039; and it&#039;s then much more difficult to drive it to where you want to go.

Interesting post though, good stuff.</description>
		<content:encoded><![CDATA[<p>Another thing you seem to have done quite well with this example is to not try and pull out the duplication too early but to instead let it stay there until a more obvious pattern of duplication emerges.</p>
<p>Pulling the duplication out too early as you point out seems to make the code way less &#8216;malleable&#8217; and it&#8217;s then much more difficult to drive it to where you want to go.</p>
<p>Interesting post though, good stuff.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

