<?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: An Interview Question That Prints Out Its Own Source Code (In Ruby)</title> <atom:link href="http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/feed/" rel="self" type="application/rss+xml" /><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/</link> <description>For the betterment of the software craft...</description> <lastBuildDate>Mon, 21 Nov 2011 13:57:06 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.2</generator> <item><title>By: Chris</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-7096</link> <dc:creator>Chris</dc:creator> <pubDate>Tue, 19 Apr 2011 04:11:13 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-7096</guid> <description>Would you hire me if I offered an empty file?</description> <content:encoded><![CDATA[<p>Would you hire me if I offered an empty file?</p> ]]></content:encoded> </item> <item><title>By: Just Saying</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-6911</link> <dc:creator>Just Saying</dc:creator> <pubDate>Fri, 18 Feb 2011 04:41:48 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-6911</guid> <description>The First Quines in Ruby
Originally posted to the ruby-talk list on July 19, 2000
http://rubyhacker.com/ruby-quine.html
Note: this also includes a heredoc example!</description> <content:encoded><![CDATA[<p>The First Quines in Ruby<br
/> Originally posted to the ruby-talk list on July 19, 2000<br
/> <a
href="http://rubyhacker.com/ruby-quine.html" rel="nofollow">http://rubyhacker.com/ruby-quine.html</a></p><p>Note: this also includes a heredoc example!</p> ]]></content:encoded> </item> <item><title>By: Jonas Elfström</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-6765</link> <dc:creator>Jonas Elfström</dc:creator> <pubDate>Wed, 22 Dec 2010 12:30:43 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-6765</guid> <description>In case you missed two of the most mind blowing &quot;quines&quot; ever:
http://mamememo.blogspot.com/2010/09/qlobe.html - rotating globe
$ watch -n1 &#039;ruby current.rb &#124; tee next.rb &amp;&amp; mv next.rb current.rb&#039;
http://www.youtube.com/watch?v=ktq-22iq-Po
http://d.hatena.ne.jp/ku-ma-me/20090916 - Polyglot quine from Ruby to Python to Perl to Lua to OCaml to Haskell to C to Java to Brainfuck to Whitespace to Unlambda and back to Ruby.</description> <content:encoded><![CDATA[<p>In case you missed two of the most mind blowing &#8220;quines&#8221; ever:</p><p><a
href="http://mamememo.blogspot.com/2010/09/qlobe.html" rel="nofollow">http://mamememo.blogspot.com/2010/09/qlobe.html</a> &#8211; rotating globe<br
/> $ watch -n1 &#8216;ruby current.rb | tee next.rb &amp;&amp; mv next.rb current.rb&#8217;<br
/> <a
href="http://www.youtube.com/watch?v=ktq-22iq-Po" rel="nofollow">http://www.youtube.com/watch?v=ktq-22iq-Po</a></p><p><a
href="http://d.hatena.ne.jp/ku-ma-me/20090916" rel="nofollow">http://d.hatena.ne.jp/ku-ma-me/20090916</a> &#8211; Polyglot quine from Ruby to Python to Perl to Lua to OCaml to Haskell to C to Java to Brainfuck to Whitespace to Unlambda and back to Ruby.</p> ]]></content:encoded> </item> <item><title>By: Steven Rumbalski</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-6742</link> <dc:creator>Steven Rumbalski</dc:creator> <pubDate>Tue, 14 Dec 2010 19:16:11 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-6742</guid> <description>In many languages you could just code up an empty file.  But that&#039;s probably cheating.</description> <content:encoded><![CDATA[<p>In many languages you could just code up an empty file.  But that&#8217;s probably cheating.</p> ]]></content:encoded> </item> <item><title>By: Alan Skorkin</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-6262</link> <dc:creator>Alan Skorkin</dc:creator> <pubDate>Sun, 17 Oct 2010 07:53:37 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-6262</guid> <description>You&#039;re never too late to the party if you can still have fun, that&#039;s what I always say :)</description> <content:encoded><![CDATA[<p>You&#8217;re never too late to the party if you can still have fun, that&#8217;s what I always say :)</p> ]]></content:encoded> </item> <item><title>By: Michael Buckley</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-6248</link> <dc:creator>Michael Buckley</dc:creator> <pubDate>Sun, 17 Oct 2010 03:14:55 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-6248</guid> <description>Python :)
s = &quot;s = ; print(s[0:4] + chr(34) + s + chr(34) + s[4:])&quot;; print(s[0:4] + chr(34) + s + chr(34) + s[4:])
PS: yes I realise this is an oldish post, just first time I had seen the problem and had to have a go.</description> <content:encoded><![CDATA[<p>Python :)</p><p>s = &#8220;s = ; print(s[0:4] + chr(34) + s + chr(34) + s[4:])&#8221;; print(s[0:4] + chr(34) + s + chr(34) + s[4:])</p><p>PS: yes I realise this is an oldish post, just first time I had seen the problem and had to have a go.</p> ]]></content:encoded> </item> <item><title>By: Z Carioca &#187; Blog Archive &#187; On the question of interviews</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-6158</link> <dc:creator>Z Carioca &#187; Blog Archive &#187; On the question of interviews</dc:creator> <pubDate>Thu, 07 Oct 2010 23:00:21 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-6158</guid> <description>[...] willing to give people the benefit of the doubt. I&#8217;ve also heard the benefits of the quine question, but while I think that&#8217;s a fun puzzle, and it&#8217;s the first program I write [...]</description> <content:encoded><![CDATA[<p>[...] willing to give people the benefit of the doubt. I&#8217;ve also heard the benefits of the quine question, but while I think that&#8217;s a fun puzzle, and it&#8217;s the first program I write [...]</p> ]]></content:encoded> </item> <item><title>By: Clay Shentrup</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-5247</link> <dc:creator>Clay Shentrup</dc:creator> <pubDate>Thu, 06 May 2010 22:13:29 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-5247</guid> <description>David,
You should explain the difference between &quot;it&#039;s&quot; and &quot;its&quot; to who ever wrote the docs  for this Tolk plugin you authored:
&quot;As tolk stores all the keys and translated strings in the database, you need to ask Tolk to update it&#039;s database from the primary yml file&quot;.
-- http://github.com/dhh/tolk</description> <content:encoded><![CDATA[<p>David,</p><p>You should explain the difference between &#8220;it&#8217;s&#8221; and &#8220;its&#8221; to who ever wrote the docs  for this Tolk plugin you authored:</p><p>&#8220;As tolk stores all the keys and translated strings in the database, you need to ask Tolk to update it&#8217;s database from the primary yml file&#8221;.<br
/> &#8211; <a
href="http://github.com/dhh/tolk" rel="nofollow">http://github.com/dhh/tolk</a></p> ]]></content:encoded> </item> <item><title>By: Jasim</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-5045</link> <dc:creator>Jasim</dc:creator> <pubDate>Wed, 05 May 2010 00:37:55 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-5045</guid> <description>Something in the same vein, a little more direct:
c=&quot;c=#; puts c.sub(&#039;#&#039;,c.inspect)&quot;; puts c.sub(&#039;#&#039;,c.inspect)</description> <content:encoded><![CDATA[<p>Something in the same vein, a little more direct:</p><p>c=&#8221;c=#; puts c.sub(&#8216;#&#8217;,c.inspect)&#8221;; puts c.sub(&#8216;#&#8217;,c.inspect)</p> ]]></content:encoded> </item> <item><title>By: O Melhor do RubyFlow &#8211; 12 Links sobre Ruby de Março de 2010</title><link>http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/comment-page-1/#comment-4640</link> <dc:creator>O Melhor do RubyFlow &#8211; 12 Links sobre Ruby de Março de 2010</dc:creator> <pubDate>Thu, 15 Apr 2010 13:02:40 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1468#comment-4640</guid> <description>[...] Entrevista que Imprime seu Próprio Código Fonte (em Ruby) Recentemente decidi brincar um pouco escrevendo um quine em Ruby (especialmente porque não achei nenhum outro). Além de discutir as vantagens de se utilizar [...]</description> <content:encoded><![CDATA[<p>[...] Entrevista que Imprime seu Próprio Código Fonte (em Ruby) Recentemente decidi brincar um pouco escrevendo um quine em Ruby (especialmente porque não achei nenhum outro). Além de discutir as vantagens de se utilizar [...]</p> ]]></content:encoded> </item> </channel> </rss>
