<?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: Ruby joy</title>
	<atom:link href="http://www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/</link>
	<description>pointless ramblings</description>
	<lastBuildDate>Fri, 06 Jun 2008 13:23:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Michael</title>
		<link>http://www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/comment-page-1/#comment-83</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 09 Sep 2006 20:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/#comment-83</guid>
		<description>&lt;p&gt;More functional (and elegant) version of the second method:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;def int_to_str_base(num,base)
  if (num == 0)
    &quot;&quot;
  else
    int_to_str_base(num / base, base) &lt;&lt; $base_ch[num % base]
  end
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I think this is tail-recursive, but not sure.  I don&#039;t really remember what that means!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>More functional (and elegant) version of the second method:</p>
<p><code>def int_to_str_base(num,base)<br />
  if (num == 0)<br />
    ""<br />
  else<br />
    int_to_str_base(num / base, base) &lt;&lt; $base_ch[num % base]<br />
  end<br />
end<br />
</code></p>
<p>I think this is tail-recursive, but not sure.  I don&#8217;t really remember what that means!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emma</title>
		<link>http://www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/comment-page-1/#comment-52</link>
		<dc:creator>Emma</dc:creator>
		<pubDate>Wed, 28 Jun 2006 06:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/#comment-52</guid>
		<description>&lt;p&gt;&quot;This is mainly to annoy Emma. &quot;  Hey!!  &lt;/p&gt;

&lt;p&gt;On the rest of the post.... get laid dude, get laid! ;-)  Nah, it does look cooler than the cobol method that&#039;s for sure!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;This is mainly to annoy Emma. &#8221;  Hey!!  </p>
<p>On the rest of the post&#8230;. get laid dude, get laid! ;-)  Nah, it does look cooler than the cobol method that&#8217;s for sure!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.michaelbannister.co.uk/blog/2006/06/21/ruby-joy/feed/ ) in 0.18489 seconds, on Feb 6th, 2012 at 10:28 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 6th, 2012 at 11:28 am UTC -->
