<?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/Rails interview questions</title>
	<atom:link href="http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html</link>
	<description>on AI, The Web, Usability, Testing &#38; Software process</description>
	<lastBuildDate>Wed, 27 Jan 2010 02:14:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Craig</title>
		<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/comment-page-1#comment-558</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Wed, 13 Aug 2008 20:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.joesniff.co.uk/?p=98#comment-558</guid>
		<description>Hi,
It really good effort to pass this article here its really helpful for me you can also find other info related to ruby at http://www.interviewmadeeasy.info/ruby</description>
		<content:encoded><![CDATA[<p>Hi,<br />
It really good effort to pass this article here its really helpful for me you can also find other info related to ruby at <a href="http://www.interviewmadeeasy.info/ruby" rel="nofollow">http://www.interviewmadeeasy.info/ruby</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wilk</title>
		<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/comment-page-1#comment-532</link>
		<dc:creator>Joseph Wilk</dc:creator>
		<pubDate>Mon, 04 Aug 2008 19:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.joesniff.co.uk/?p=98#comment-532</guid>
		<description>I would counter that, I think there is another valid answer to the question: Never! I think there are valid arguments for this. I do ask for examples after the question to backup the argument but you are right I could phrase the question better.

The last question is a bit silly but its interesting seeing peoples reactions to it. Really what I&#039;m looking at is:
1. Preconceptions of the languages
2. Enough knowledge of each to express some traits.
3. Sense of humour
</description>
		<content:encoded><![CDATA[<p>I would counter that, I think there is another valid answer to the question: Never! I think there are valid arguments for this. I do ask for examples after the question to backup the argument but you are right I could phrase the question better.</p>
<p>The last question is a bit silly but its interesting seeing peoples reactions to it. Really what I&#8217;m looking at is:<br />
1. Preconceptions of the languages<br />
2. Enough knowledge of each to express some traits.<br />
3. Sense of humour</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey</title>
		<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/comment-page-1#comment-513</link>
		<dc:creator>Jeffrey</dc:creator>
		<pubDate>Thu, 31 Jul 2008 19:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.joesniff.co.uk/?p=98#comment-513</guid>
		<description>Question 4 is obviously &quot;sometimes yes, sometimes no&quot;.  A better question would ask *when* it is a good idea.

I&#039;d be pretty annoyed getting the last question on an interview.</description>
		<content:encoded><![CDATA[<p>Question 4 is obviously &#8220;sometimes yes, sometimes no&#8221;.  A better question would ask *when* it is a good idea.</p>
<p>I&#8217;d be pretty annoyed getting the last question on an interview.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wilk</title>
		<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/comment-page-1#comment-512</link>
		<dc:creator>Joseph Wilk</dc:creator>
		<pubDate>Thu, 31 Jul 2008 13:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.joesniff.co.uk/?p=98#comment-512</guid>
		<description>I&#039;m happy to give answers to any questions if anyone requests it. Though the comments from people above have shown some of the best and most entertaining answers are the ones I was not expecting :)

Regarding question 5:

The object_id method returns the identity of an object. Every object must have a unique id. Hence if two objects have the same object_id, they are the same object.

Ruby&#039;s booleans and nil are objects, so they deserve to be treated like real objects just like the rest. So they too should have an object_id.
 
When allocating object ids we are restricted with what ids we can use as Fixnum uses the odd object_ids (well all those needed to reach the maximum Fixnum). It takes the odd ids as the least significant bit is always set to 1 to flag this as a Fixnum.

So starting at the sensible point of 0 this leaves us with the following order:

&lt;pre&gt;
0 =&gt; False
1 =&gt; 0 (Fixnum)
2 =&gt; True
3 =&gt; 1 (Fixnum)
4 =&gt; Nil
5 =&gt; 2 (Fixnum)
6 =&gt; Undefined
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m happy to give answers to any questions if anyone requests it. Though the comments from people above have shown some of the best and most entertaining answers are the ones I was not expecting <img src='http://blog.josephwilk.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regarding question 5:</p>
<p>The object_id method returns the identity of an object. Every object must have a unique id. Hence if two objects have the same object_id, they are the same object.</p>
<p>Ruby&#8217;s booleans and nil are objects, so they deserve to be treated like real objects just like the rest. So they too should have an object_id.</p>
<p>When allocating object ids we are restricted with what ids we can use as Fixnum uses the odd object_ids (well all those needed to reach the maximum Fixnum). It takes the odd ids as the least significant bit is always set to 1 to flag this as a Fixnum.</p>
<p>So starting at the sensible point of 0 this leaves us with the following order:</p>
<pre>
0 => False
1 => 0 (Fixnum)
2 => True
3 => 1 (Fixnum)
4 => Nil
5 => 2 (Fixnum)
6 => Undefined
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/comment-page-1#comment-508</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 30 Jul 2008 12:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.joesniff.co.uk/?p=98#comment-508</guid>
		<description>You gonna provide any answers to these?

I&#039;m particularly interested in the answer to question 5!</description>
		<content:encoded><![CDATA[<p>You gonna provide any answers to these?</p>
<p>I&#8217;m particularly interested in the answer to question 5!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Urquhart</title>
		<link>http://blog.josephwilk.net/ruby/rubyrails-interview-questions.html/comment-page-1#comment-506</link>
		<dc:creator>James Urquhart</dc:creator>
		<pubDate>Wed, 30 Jul 2008 10:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.joesniff.co.uk/?p=98#comment-506</guid>
		<description>Interesting questions. Abstract and imaginative - just the way i like it.

My personal take on the airplane question is this.

If i am getting a chance to fly in this airplane, then that implies that i have already made the choice to fly in it. So provided all goes well, yes.

Tricky question indeed. :)</description>
		<content:encoded><![CDATA[<p>Interesting questions. Abstract and imaginative &#8211; just the way i like it.</p>
<p>My personal take on the airplane question is this.</p>
<p>If i am getting a chance to fly in this airplane, then that implies that i have already made the choice to fly in it. So provided all goes well, yes.</p>
<p>Tricky question indeed. <img src='http://blog.josephwilk.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
