<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
	>
<channel>
	<title>Comments on: More Ruby Type Weirdness</title>
	<atom:link href="http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/feed/" rel="self" type="application/rss+xml" />
	<link>http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/</link>
	<description>programming, politics, &#38; other religious issues</description>
	<lastBuildDate>Wed, 08 Feb 2012 14:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Ruby is the Future</title>
		<link>http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-37193</link>
		<dc:creator>Ruby is the Future</dc:creator>
		<pubDate>Sun, 31 Jan 2010 15:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-37193</guid>
		<description>[...] a whole lifetime of ranting against it (cite, cite, cite, cite), I finally have to eat my words, come out, and say it: Ruby is the language of the [...]</description>
		<content:encoded><![CDATA[<p>[...] a whole lifetime of ranting against it (cite, cite, cite, cite), I finally have to eat my words, come out, and say it: Ruby is the language of the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34254</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Fri, 06 Mar 2009 01:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34254</guid>
		<description>Can you give a bit more context? This is certainly an Active Record issue, not a Ruby issue, but even then it seems that, if I understood the problem correctly, you could add validations to your model to avoid that error.</description>
		<content:encoded><![CDATA[<p>Can you give a bit more context? This is certainly an Active Record issue, not a Ruby issue, but even then it seems that, if I understood the problem correctly, you could add validations to your model to avoid that error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beau</title>
		<link>http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34253</link>
		<dc:creator>Beau</dc:creator>
		<pubDate>Thu, 05 Mar 2009 23:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34253</guid>
		<description>irb(main):001:0&gt; int_var = 0
=&gt; 0
irb(main):002:0&gt; int_var = [&#039;value&#039;].shift
=&gt; &quot;value&quot;
irb(main):003:0&gt; puts int_var
value
=&gt; nil


Agree with Barry Kelly, this looks like ActiveRecord weirdness.</description>
		<content:encoded><![CDATA[<p>irb(main):001:0&gt; int_var = 0<br />
=&gt; 0<br />
irb(main):002:0&gt; int_var = ['value'].shift<br />
=&gt; &#8220;value&#8221;<br />
irb(main):003:0&gt; puts int_var<br />
value<br />
=&gt; nil</p>
<p>Agree with Barry Kelly, this looks like ActiveRecord weirdness.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry Kelly</title>
		<link>http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34251</link>
		<dc:creator>Barry Kelly</dc:creator>
		<pubDate>Thu, 05 Mar 2009 21:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34251</guid>
		<description>Ruby doesn&#039;t sit on the fence, AFAIK, at least not like Variants in e.g. VB do: the values are indeed typed. It seems to me that however ActiveRecord works, it should have interpreted the message to assign a string to the step field as a runtime error, or it should have stored it as a string and produced a runtime error later when trying to persist it.

In other words, it looks more like a library problem - the library trying to do coercion - than a language problem.

I may, of course, have misinterpreted the situation, given that I have done extremely little Ruby programming.</description>
		<content:encoded><![CDATA[<p>Ruby doesn&#8217;t sit on the fence, AFAIK, at least not like Variants in e.g. VB do: the values are indeed typed. It seems to me that however ActiveRecord works, it should have interpreted the message to assign a string to the step field as a runtime error, or it should have stored it as a string and produced a runtime error later when trying to persist it.</p>
<p>In other words, it looks more like a library problem &#8211; the library trying to do coercion &#8211; than a language problem.</p>
<p>I may, of course, have misinterpreted the situation, given that I have done extremely little Ruby programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34250</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 05 Mar 2009 21:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://enfranchisedmind.com/blog/posts/more-ruby-type-weirdness/#comment-34250</guid>
		<description>A decent suite of tests would have warned you when you changed &#039;step&#039; from string to integer. No need to start locking everything down just to highlight the bugs in your code.</description>
		<content:encoded><![CDATA[<p>A decent suite of tests would have warned you when you changed &#8216;step&#8217; from string to integer. No need to start locking everything down just to highlight the bugs in your code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

