<?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: puts vs print in ruby</title>
	<atom:link href="http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/</link>
	<description>Agile Manager and Occasional Code Monkey</description>
	<lastBuildDate>Sun, 21 Feb 2010 22:01:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt Berther</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166533</link>
		<dc:creator>Matt Berther</dc:creator>
		<pubDate>Sat, 26 Sep 2009 05:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166533</guid>
		<description>What I was really after was that the . printed with the 2 second delay. If the last puts flushes the prior prints, then they all show up at once, instead of at 2 second intervals.</description>
		<content:encoded><![CDATA[<p>What I was really after was that the . printed with the 2 second delay. If the last puts flushes the prior prints, then they all show up at once, instead of at 2 second intervals.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheFu</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166532</link>
		<dc:creator>TheFu</dc:creator>
		<pubDate>Fri, 25 Sep 2009 23:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166532</guid>
		<description>What happens if you ...

5.times {
  print &quot;.&quot;
  sleep 2
}
puts &quot;:&quot;

On my system, the last &#039;puts&#039; flushes the prior prints.</description>
		<content:encoded><![CDATA[<p>What happens if you &#8230;</p>
<p>5.times {<br />
  print &#8220;.&#8221;<br />
  sleep 2<br />
}<br />
puts &#8220;:&#8221;</p>
<p>On my system, the last &#8216;puts&#8217; flushes the prior prints.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: June</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166526</link>
		<dc:creator>June</dc:creator>
		<pubDate>Thu, 17 Sep 2009 02:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166526</guid>
		<description>it also works for STDOUT.sync=false
why?</description>
		<content:encoded><![CDATA[<p>it also works for STDOUT.sync=false<br />
why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: June</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166525</link>
		<dc:creator>June</dc:creator>
		<pubDate>Thu, 17 Sep 2009 02:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166525</guid>
		<description>I tried on my computer. That&#039;s no problem for prints to print a dot every 2 seconds. And then I check the value of STDOUT.sync, it&#039;s true.
So I think the value maybe vary in different systems. It would be better to check it before writing this kind of codes.</description>
		<content:encoded><![CDATA[<p>I tried on my computer. That&#8217;s no problem for prints to print a dot every 2 seconds. And then I check the value of STDOUT.sync, it&#8217;s true.<br />
So I think the value maybe vary in different systems. It would be better to check it before writing this kind of codes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiran</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166496</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Tue, 19 May 2009 16:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166496</guid>
		<description>Superb tip.....thanks a lot.....</description>
		<content:encoded><![CDATA[<p>Superb tip&#8230;..thanks a lot&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eMancu</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166482</link>
		<dc:creator>eMancu</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166482</guid>
		<description>Thx for &#039;STDOUT.sync = true &#039; because puts and print waits for 10 seconds and then prints 5 dots.

I don&#039;t know why my ruby do somethings like that when you say that is a difference between puts and print.

But all is fixed thx to you!! 

PS: Sorry for my english</description>
		<content:encoded><![CDATA[<p>Thx for &#8216;STDOUT.sync = true &#8216; because puts and print waits for 10 seconds and then prints 5 dots.</p>
<p>I don&#8217;t know why my ruby do somethings like that when you say that is a difference between puts and print.</p>
<p>But all is fixed thx to you!! </p>
<p>PS: Sorry for my english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roger</title>
		<link>http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/comment-page-1/#comment-166459</link>
		<dc:creator>roger</dc:creator>
		<pubDate>Fri, 20 Feb 2009 17:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattberther.com/?p=1067#comment-166459</guid>
		<description>Wow that&#039;s cool. i&#039;d imagine it flushes because of the added &quot;\n&quot; at the end? Nice tip</description>
		<content:encoded><![CDATA[<p>Wow that&#8217;s cool. i&#8217;d imagine it flushes because of the added &#8220;\n&#8221; at the end? Nice tip</p>
]]></content:encoded>
	</item>
</channel>
</rss>
