<?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: Sanity Program</title>
	<atom:link href="http://www.nick-cash.com/2006/05/23/sanity-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nick-cash.com/2006/05/23/sanity-program/</link>
	<description>You will beat those who wield sticks.</description>
	<lastBuildDate>Fri, 14 May 2010 22:50:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Odis</title>
		<link>http://www.nick-cash.com/2006/05/23/sanity-program/comment-page-1/#comment-4676</link>
		<dc:creator>Odis</dc:creator>
		<pubDate>Wed, 19 Jul 2006 23:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.nick-cash.com/wp/2006/05/23/sanity-program/#comment-4676</guid>
		<description>Last night I converted the Sanity program (in C) to Ruby. I will post the code when I get a chance. I didn&#039;t change too much, but you might be able to see how small-scale translating between languages works.

Ruby shaved some 30 lines off the code, though the C version could be that much smaller depending on programmer preferences (I like my curly&#039;s to have their own lines).

I should also note that the Sanity program is an example of relatively bad programming. It uses a lot of defined constants, many of which could be avoided in favor of user input or file input.</description>
		<content:encoded><![CDATA[<p>Last night I converted the Sanity program (in C) to Ruby. I will post the code when I get a chance. I didn&#8217;t change too much, but you might be able to see how small-scale translating between languages works.</p>
<p>Ruby shaved some 30 lines off the code, though the C version could be that much smaller depending on programmer preferences (I like my curly&#8217;s to have their own lines).</p>
<p>I should also note that the Sanity program is an example of relatively bad programming. It uses a lot of defined constants, many of which could be avoided in favor of user input or file input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Odis</title>
		<link>http://www.nick-cash.com/2006/05/23/sanity-program/comment-page-1/#comment-4647</link>
		<dc:creator>Odis</dc:creator>
		<pubDate>Wed, 19 Jul 2006 01:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.nick-cash.com/wp/2006/05/23/sanity-program/#comment-4647</guid>
		<description>All code posted here is public domain unless otherwise noted.</description>
		<content:encoded><![CDATA[<p>All code posted here is public domain unless otherwise noted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas E. May</title>
		<link>http://www.nick-cash.com/2006/05/23/sanity-program/comment-page-1/#comment-4640</link>
		<dc:creator>Nicholas E. May</dc:creator>
		<pubDate>Tue, 18 Jul 2006 21:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.nick-cash.com/wp/2006/05/23/sanity-program/#comment-4640</guid>
		<description>&lt;i&gt;This inspired a friend of mine to attempt to write a “sanity program” in Ruby.&lt;/i&gt;

Weeird.  I had that idea last night and was just looking this post (and the code) over and tripped across that line---which I missed in my past readings (well, skimmings).  I think it&#039;ll be another week or two before I give it a go, though.  Maybe you could include some license information with the code?</description>
		<content:encoded><![CDATA[<p><i>This inspired a friend of mine to attempt to write a “sanity program” in Ruby.</i></p>
<p>Weeird.  I had that idea last night and was just looking this post (and the code) over and tripped across that line&#8212;which I missed in my past readings (well, skimmings).  I think it&#8217;ll be another week or two before I give it a go, though.  Maybe you could include some license information with the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Odis</title>
		<link>http://www.nick-cash.com/2006/05/23/sanity-program/comment-page-1/#comment-2776</link>
		<dc:creator>Odis</dc:creator>
		<pubDate>Sat, 03 Jun 2006 17:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.nick-cash.com/wp/2006/05/23/sanity-program/#comment-2776</guid>
		<description>You could make it fully autonomous and remove the getche()/getchar() calls. In general I made it so it would run quickly (rather than infinitely).

One thing you might consider adding is a counter to see how many &quot;Woot, sanity&quot; prints you get.</description>
		<content:encoded><![CDATA[<p>You could make it fully autonomous and remove the getche()/getchar() calls. In general I made it so it would run quickly (rather than infinitely).</p>
<p>One thing you might consider adding is a counter to see how many &#8220;Woot, sanity&#8221; prints you get.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas E. May</title>
		<link>http://www.nick-cash.com/2006/05/23/sanity-program/comment-page-1/#comment-2694</link>
		<dc:creator>Nicholas E. May</dc:creator>
		<pubDate>Sat, 03 Jun 2006 01:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.nick-cash.com/wp/2006/05/23/sanity-program/#comment-2694</guid>
		<description>You were right about getche(), but it worked fine once I did a query replace.  I guess I thought the program was interactive, so it was&#039;n as much fun as I thought it would be.  Except now I get to go mucking about through source code!  Hehehe.</description>
		<content:encoded><![CDATA[<p>You were right about getche(), but it worked fine once I did a query replace.  I guess I thought the program was interactive, so it was&#8217;n as much fun as I thought it would be.  Except now I get to go mucking about through source code!  Hehehe.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
