<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Rubyize this : 2nd edition</title>
	<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/</link>
	<description>Because programming should be fun</description>
	<pubDate>Mon, 08 Sep 2008 09:16:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Jan De Poorter</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-312</link>
		<author>Jan De Poorter</author>
		<pubDate>Mon, 30 Jul 2007 15:02:52 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-312</guid>
					<description>I'd do something like:

Controller:
@songs = Song.find(:all)

View:
h2%= @song.title.titleize %/h2
%= show_rating(@song.rating) %

Helper:
def show_rating rate
..if rate &#38;&#38; rate.nonzero?
....rate.times { image_tag 'star.gif', :alt =&#62; 'star' }
..else
...."This song hasn't been rated yet"
..end
end</description>
		<content:encoded><![CDATA[<p>I&#8217;d do something like:</p>
<p>Controller:<br />
@songs = Song.find(:all)</p>
<p>View:<br />
h2%= @song.title.titleize %/h2<br />
%= show_rating(@song.rating) %</p>
<p>Helper:<br />
def show_rating rate<br />
..if rate &amp;&amp; rate.nonzero?<br />
&#8230;.rate.times { image_tag &#8217;star.gif&#8217;, :alt =&gt; &#8217;star&#8217; }<br />
..else<br />
&#8230;.&#8221;This song hasn&#8217;t been rated yet&#8221;<br />
..end<br />
end</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jan De Poorter</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-313</link>
		<author>Jan De Poorter</author>
		<pubDate>Mon, 30 Jul 2007 15:13:18 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-313</guid>
					<description>Make that:
def show_rating rate
..if rate &#38;&#38; rate.nonzero?
....(1..rate).collect { image_tag 'star.gif', :alt =&#62; 'star' }
..else
….”This song hasn’t been rated yet”
..end</description>
		<content:encoded><![CDATA[<p>Make that:<br />
def show_rating rate<br />
..if rate &amp;&amp; rate.nonzero?<br />
&#8230;.(1..rate).collect { image_tag &#8217;star.gif&#8217;, :alt =&gt; &#8217;star&#8217; }<br />
..else<br />
….”This song hasn’t been rated yet”<br />
..end</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-314</link>
		<author>Alex</author>
		<pubDate>Mon, 30 Jul 2007 15:15:22 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-314</guid>
					<description>Well first I don't like to set variables in the viewn so I would move the find statement to the controller:
@songs = Song.find(:all)

While there's no problem with a for loop, the syntax is a bit off, so I'd change that to:


Next .capitalize would be better for putting the title's first letter in uppercase:


The rating statement could definetely do with a bit of trimming:
" * song.rating : "This song hasn’t been rated yet" %&#62;

would be the way I'd clean it up, and I'd probably move it to a helper too.

Anyway that's my take on it ;)

Note: Just in case the formatting on this gets messed up, I've made a Pastie at http://pastie.caboo.se/83477</description>
		<content:encoded><![CDATA[<p>Well first I don&#8217;t like to set variables in the viewn so I would move the find statement to the controller:<br />
@songs = Song.find(:all)</p>
<p>While there&#8217;s no problem with a for loop, the syntax is a bit off, so I&#8217;d change that to:</p>
<p>Next .capitalize would be better for putting the title&#8217;s first letter in uppercase:</p>
<p>The rating statement could definetely do with a bit of trimming:<br />
&#8221; * song.rating : &#8220;This song hasn’t been rated yet&#8221; %&gt;</p>
<p>would be the way I&#8217;d clean it up, and I&#8217;d probably move it to a helper too.</p>
<p>Anyway that&#8217;s my take on it <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Note: Just in case the formatting on this gets messed up, I&#8217;ve made a Pastie at <a href="http://pastie.caboo.se/83477" rel="nofollow">http://pastie.caboo.se/83477</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-315</link>
		<author>Alex</author>
		<pubDate>Mon, 30 Jul 2007 15:18:40 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-315</guid>
					<description>Edit: Oops, soory, forgot about the not using Erb tags so most I've my post did indeed get obliterated. Jan largely beat me too it anyway though.</description>
		<content:encoded><![CDATA[<p>Edit: Oops, soory, forgot about the not using Erb tags so most I&#8217;ve my post did indeed get obliterated. Jan largely beat me too it anyway though.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-316</link>
		<author>Eric</author>
		<pubDate>Mon, 30 Jul 2007 15:20:01 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-316</guid>
					<description>Hi! 

I wrote it in haml, think it might be easier to read (still need .. for indent though!)

###############################
-for each song in Song.find(:all)
..%h2=song.title.first.upcase
..(song.rating&#124;&#124;0).times do
....%img{:src=&#62;’star.gif‘, :alt&#62;=’star’}/
..="This song hasn’t been rated yet" unless song.rating
###############################</description>
		<content:encoded><![CDATA[<p>Hi! </p>
<p>I wrote it in haml, think it might be easier to read (still need .. for indent though!)</p>
<p>###############################<br />
-for each song in Song.find(:all)<br />
..%h2=song.title.first.upcase<br />
..(song.rating||0).times do<br />
&#8230;.%img{:src=&gt;’star.gif‘, :alt&gt;=’star’}/<br />
..=&#8221;This song hasn’t been rated yet&#8221; unless song.rating<br />
###############################</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Eric (again)</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-317</link>
		<author>Eric (again)</author>
		<pubDate>Mon, 30 Jul 2007 15:27:20 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-317</guid>
					<description>Sure, you can (should!) define @songs=Song.find(:all) in the corresponding controller.</description>
		<content:encoded><![CDATA[<p>Sure, you can (should!) define @songs=Song.find(:all) in the corresponding controller.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Eric (again?!?)</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-318</link>
		<author>Eric (again?!?)</author>
		<pubDate>Mon, 30 Jul 2007 15:29:42 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-318</guid>
					<description>Did you really want to display songtitle's first letter (title[0..0].upcase), or did you want to titleize it (song.title.titleize)?</description>
		<content:encoded><![CDATA[<p>Did you really want to display songtitle&#8217;s first letter (title[0..0].upcase), or did you want to titleize it (song.title.titleize)?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: QuaeFrog</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-319</link>
		<author>QuaeFrog</author>
		<pubDate>Mon, 30 Jul 2007 15:31:09 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-319</guid>
					<description># songs_controller.rb
class SongsController  0
......for i in 1..rating
........image_tag("star.gif", :alt =&#62; "star")
......end
....else
....."This song hasn’t been rated yet"
....end
..end
end

# index.rhtml
% @songs.each do &#124;song&#124; -%
..%= song.title.capitalize %
..%= rating_stars(song.rating) %
% end -%</description>
		<content:encoded><![CDATA[<p># songs_controller.rb<br />
class SongsController  0<br />
&#8230;&#8230;for i in 1..rating<br />
&#8230;&#8230;..image_tag(&#8221;star.gif&#8221;, :alt =&gt; &#8220;star&#8221;)<br />
&#8230;&#8230;end<br />
&#8230;.else<br />
&#8230;..&#8221;This song hasn’t been rated yet&#8221;<br />
&#8230;.end<br />
..end<br />
end</p>
<p># index.rhtml<br />
% @songs.each do |song| -%<br />
..%= song.title.capitalize %<br />
..%= rating_stars(song.rating) %<br />
% end -%</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: QuaeFrog</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-320</link>
		<author>QuaeFrog</author>
		<pubDate>Mon, 30 Jul 2007 15:46:41 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-320</guid>
					<description>Oops! Sorry, wordpress eat half of my code.
full version here -&#62;  http://pastie.caboo.se/83485</description>
		<content:encoded><![CDATA[<p>Oops! Sorry, wordpress eat half of my code.<br />
full version here -&gt;  <a href="http://pastie.caboo.se/83485" rel="nofollow">http://pastie.caboo.se/83485</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Gerry</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-321</link>
		<author>Gerry</author>
		<pubDate>Mon, 30 Jul 2007 16:07:30 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-321</guid>
					<description>Pretty much a rehash of what has been said with a few refinements:

# Controller
@songs = Song.find(:all)

# Helper
def show_rating(rating)
. if rating &#38;&#38; rating &#62; 0
. . (1..rating).each { image_tag 'star.gif', :alt =&#62; '*' }
. else
. . "This song has not been rated"
. end
end

# View (HAML)
- @songs.each do &#124;song&#124;
. %h2= h(song.titleize)
. = show_rating(song.rating)</description>
		<content:encoded><![CDATA[<p>Pretty much a rehash of what has been said with a few refinements:</p>
<p># Controller<br />
@songs = Song.find(:all)</p>
<p># Helper<br />
def show_rating(rating)<br />
. if rating &amp;&amp; rating &gt; 0<br />
. . (1..rating).each { image_tag &#8217;star.gif&#8217;, :alt =&gt; &#8216;*&#8217; }<br />
. else<br />
. . &#8220;This song has not been rated&#8221;<br />
. end<br />
end</p>
<p># View (HAML)<br />
- @songs.each do |song|<br />
. %h2= h(song.titleize)<br />
. = show_rating(song.rating)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-322</link>
		<author>Frank</author>
		<pubDate>Mon, 30 Jul 2007 16:46:36 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-322</guid>
					<description>@Eric... darn, you're right! I indeed wanted to display the title with the first letter capitalized... my bad. I'm going to make the ugly code uglier again.</description>
		<content:encoded><![CDATA[<p>@Eric&#8230; darn, you&#8217;re right! I indeed wanted to display the title with the first letter capitalized&#8230; my bad. I&#8217;m going to make the ugly code uglier again.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: macournoyer</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-323</link>
		<author>macournoyer</author>
		<pubDate>Mon, 30 Jul 2007 17:41:32 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-323</guid>
					<description>&lt;code&gt;
# Controller
def show
  @songs = Song.find(:all)
end

# Helper
def song_rating(song)
  if song.rating.to_i &#62; 0
    image_tag('star.gif') * song.rating.to_i
  else
    "This song hasn’t been rated yet"
  end
end

# View
&#62;% @songs.each do &#124;song&#124; %&#60;
  &#62;h2&#60;&#62;%=h song.title.capitalize %&#60;&#62;/h2&#60;
  &#62;%= song_rating song %&#60;
&#62;% end %&#60;

# Me
self.drink! :coffey
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
# Controller<br />
def show<br />
  @songs = Song.find(:all)<br />
end</p>
<p># Helper<br />
def song_rating(song)<br />
  if song.rating.to_i &gt; 0<br />
    image_tag('star.gif') * song.rating.to_i<br />
  else<br />
    "This song hasn’t been rated yet"<br />
  end<br />
end</p>
<p># View<br />
&gt;% @songs.each do |song| %&lt;<br />
  &gt;h2&lt;&gt;%=h song.title.capitalize %&lt;&gt;/h2&lt;<br />
  &gt;%= song_rating song %&lt;<br />
&gt;% end %&lt;</p>
<p># Me<br />
self.drink! :coffey<br />
</code></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-324</link>
		<author>Scott</author>
		<pubDate>Mon, 30 Jul 2007 18:29:47 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-324</guid>
					<description>Fun!  OK, here's mine.  Not much different from everyone else's, but I thought I'd throw it in the ring.

First, in the controller:
@songs = Song.find(:all)

Second, in the migration that created songs, I'd set the default for rating to 1 and make rating an int.  This gets rid of the need to check for nil in the rating.  I'd think about validating for this in the model as well.

Here's the view:

% @songs.each do &#124;song&#124; %
  h2%= song.title.titleize %/h2
  %=  song.rating &#62; 0 ?  image_tag('star.gif') * rating : "This song hasn't been rated yet" %
% end %

I tend to use the trinary operator a lot, so I find  that readable.  Others may differ :)

Scott

Oh yeah, if you use image tag like that, you need to have star.gif in the public/images directory.  This seems more railsy to me.  If you really want it in public, then I think that calling it like image_tag('/star.gif') will do the trick.</description>
		<content:encoded><![CDATA[<p>Fun!  OK, here&#8217;s mine.  Not much different from everyone else&#8217;s, but I thought I&#8217;d throw it in the ring.</p>
<p>First, in the controller:<br />
@songs = Song.find(:all)</p>
<p>Second, in the migration that created songs, I&#8217;d set the default for rating to 1 and make rating an int.  This gets rid of the need to check for nil in the rating.  I&#8217;d think about validating for this in the model as well.</p>
<p>Here&#8217;s the view:</p>
<p>% @songs.each do |song| %<br />
  h2%= song.title.titleize %/h2<br />
  %=  song.rating &gt; 0 ?  image_tag(&#8217;star.gif&#8217;) * rating : &#8220;This song hasn&#8217;t been rated yet&#8221; %<br />
% end %</p>
<p>I tend to use the trinary operator a lot, so I find  that readable.  Others may differ <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Scott</p>
<p>Oh yeah, if you use image tag like that, you need to have star.gif in the public/images directory.  This seems more railsy to me.  If you really want it in public, then I think that calling it like image_tag(&#8217;/star.gif&#8217;) will do the trick.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RSL</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-325</link>
		<author>RSL</author>
		<pubDate>Mon, 30 Jul 2007 21:33:30 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-325</guid>
					<description>Wow. I find it kinda disheartening that only one out of thirteen solutions broke away from the PHP/JS for/in mindset and went with the much more native Ruby Array#each. The Ruby compiler has to translate those "foreign" phrases into Ruby's Array#each every time you use them. :( I really, really hate that so many "Rubyists" continue to baby-feed their students this ugly, clunky, fallback methodology. It's usually a telltale sign [to me] that someone doesn't really know their Ruby. :(</description>
		<content:encoded><![CDATA[<p>Wow. I find it kinda disheartening that only one out of thirteen solutions broke away from the PHP/JS for/in mindset and went with the much more native Ruby Array#each. The Ruby compiler has to translate those &#8220;foreign&#8221; phrases into Ruby&#8217;s Array#each every time you use them. <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> I really, really hate that so many &#8220;Rubyists&#8221; continue to baby-feed their students this ugly, clunky, fallback methodology. It&#8217;s usually a telltale sign [to me] that someone doesn&#8217;t really know their Ruby. <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-326</link>
		<author>Alex</author>
		<pubDate>Mon, 30 Jul 2007 21:48:06 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-326</guid>
					<description>I don't really think its really an issue of not knowing Ruby. I just think the syntax of for x in y is nicer than y.each do &#124;x&#124;. While I take the point about it being marginally slower, this is true (often to a larger extent) of a large number of other widely used, convenient methods, like link_to or to_proc. It's just one of the downsides of Ruby I'm afraid.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t really think its really an issue of not knowing Ruby. I just think the syntax of for x in y is nicer than y.each do |x|. While I take the point about it being marginally slower, this is true (often to a larger extent) of a large number of other widely used, convenient methods, like link_to or to_proc. It&#8217;s just one of the downsides of Ruby I&#8217;m afraid.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RSL</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-329</link>
		<author>RSL</author>
		<pubDate>Tue, 31 Jul 2007 21:11:39 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-329</guid>
					<description>@ Alex: Neither link_to nor to_proc are Ruby methods themselves but Railsisms. I stand by my statement that a preference for the for/in methodology usually belies a programmer who hasn't come to fully understand Ruby. For/in is syntactic sugar for Array#each, put there for programmers who can''t or won't let go of programming habits they learned in other languages. Array#each is not only marginally faster but more importantly... it's more _Ruby_. And by learning to think in Ruby [instead of translating your old programming languages' idioms to Ruby] one will no doubt see a marked increase in the efficiency of his/her code.</description>
		<content:encoded><![CDATA[<p>@ Alex: Neither link_to nor to_proc are Ruby methods themselves but Railsisms. I stand by my statement that a preference for the for/in methodology usually belies a programmer who hasn&#8217;t come to fully understand Ruby. For/in is syntactic sugar for Array#each, put there for programmers who can&#8221;t or won&#8217;t let go of programming habits they learned in other languages. Array#each is not only marginally faster but more importantly&#8230; it&#8217;s more _Ruby_. And by learning to think in Ruby [instead of translating your old programming languages&#8217; idioms to Ruby] one will no doubt see a marked increase in the efficiency of his/her code.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-330</link>
		<author>Eric</author>
		<pubDate>Wed, 01 Aug 2007 07:13:44 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-330</guid>
					<description>Thanks to RSL for pointing this out.

It actually was the first time I ever used "for ... in ...." instead of @songs.each{&#124;song&#124;   }
I just saw it in previous code, and gave it a try!
But in every Ruby tutorial I saw, .each has been used.

I didn't know "for ... in ..." was syntactic sugar for Array#each though...

Do you have any other examples of "Rubyer" code?

do..end vs {}
"a"</description>
		<content:encoded><![CDATA[<p>Thanks to RSL for pointing this out.</p>
<p>It actually was the first time I ever used &#8220;for &#8230; in &#8230;.&#8221; instead of @songs.each{|song|   }<br />
I just saw it in previous code, and gave it a try!<br />
But in every Ruby tutorial I saw, .each has been used.</p>
<p>I didn&#8217;t know &#8220;for &#8230; in &#8230;&#8221; was syntactic sugar for Array#each though&#8230;</p>
<p>Do you have any other examples of &#8220;Rubyer&#8221; code?</p>
<p>do..end vs {}<br />
&#8220;a&#8221;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RSL</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-331</link>
		<author>RSL</author>
		<pubDate>Wed, 01 Aug 2007 13:47:08 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-331</guid>
					<description>@ Eric: All the Ruby tutorials use Array#each [because they're teaching Ruby] but the Rails tutorials [and even the books, shame shame!] use for/in to attract programmers from other languages. It's one of my pet peeves as it conditions the new Rails/Ruby programmer to keep thinking in his/her old programming language. This neglect to understand Ruby and Rails trickles usually ends up creating what I "lovingly" refer to as FrankenModels, with code and structures that use Ruby but look more like a PHP program.

As far as do..end or braces, they're both very Ruby. The difference tends to be mostly stylistic, with braces being used more for short, one-line code blocks and do..end for blocks that take more code. Don't let this fool you into thinking they're the same though. When using variable assignment and the return value from a block, do...end will sometimes raise an error as it doesn't bind as tightly as braces do and the assignment can't properly determine what's going on. This doesn't happen a lot but when it does, you'll be glad you learned that braces bind tighter.</description>
		<content:encoded><![CDATA[<p>@ Eric: All the Ruby tutorials use Array#each [because they&#8217;re teaching Ruby] but the Rails tutorials [and even the books, shame shame!] use for/in to attract programmers from other languages. It&#8217;s one of my pet peeves as it conditions the new Rails/Ruby programmer to keep thinking in his/her old programming language. This neglect to understand Ruby and Rails trickles usually ends up creating what I &#8220;lovingly&#8221; refer to as FrankenModels, with code and structures that use Ruby but look more like a PHP program.</p>
<p>As far as do..end or braces, they&#8217;re both very Ruby. The difference tends to be mostly stylistic, with braces being used more for short, one-line code blocks and do..end for blocks that take more code. Don&#8217;t let this fool you into thinking they&#8217;re the same though. When using variable assignment and the return value from a block, do&#8230;end will sometimes raise an error as it doesn&#8217;t bind as tightly as braces do and the assignment can&#8217;t properly determine what&#8217;s going on. This doesn&#8217;t happen a lot but when it does, you&#8217;ll be glad you learned that braces bind tighter.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Refactor my Code &#171; Marc-André Cournoyer&#8217;s blog</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-366</link>
		<author>Refactor my Code &#171; Marc-André Cournoyer&#8217;s blog</author>
		<pubDate>Wed, 26 Sep 2007 22:24:26 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-366</guid>
					<description>[...] have you seen on blogs the author asking to replace &#62; and &#60; with something else. Oh! and forget about indentation HTML eats those, Wordpress replace &#34; with some weird character, etc, etc and etc! [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] have you seen on blogs the author asking to replace &gt; and &lt; with something else. Oh! and forget about indentation HTML eats those, Wordpress replace &quot; with some weird character, etc, etc and etc! [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: lookbaghomen</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-645</link>
		<author>lookbaghomen</author>
		<pubDate>Sat, 16 Aug 2008 02:31:28 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-645</guid>
					<description>kitchen stay steven clean all bag no</description>
		<content:encoded><![CDATA[<p>kitchen stay steven clean all bag no</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: minorstonegl</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-647</link>
		<author>minorstonegl</author>
		<pubDate>Sat, 16 Aug 2008 02:37:19 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-647</guid>
					<description>cube see sun frog ocean juicy tom deliver glass boat tom you google kitchen</description>
		<content:encoded><![CDATA[<p>cube see sun frog ocean juicy tom deliver glass boat tom you google kitchen</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: nightstoneno</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-660</link>
		<author>nightstoneno</author>
		<pubDate>Fri, 05 Sep 2008 06:51:20 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-660</guid>
					<description>vacant watch student red canada red clean car</description>
		<content:encoded><![CDATA[<p>vacant watch student red canada red clean car</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: minorheadglo</title>
		<link>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-662</link>
		<author>minorheadglo</author>
		<pubDate>Fri, 05 Sep 2008 06:56:40 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-2nd-edition/#comment-662</guid>
					<description>see joke joke we america bag clean all site sun are keyboard boat trust</description>
		<content:encoded><![CDATA[<p>see joke joke we america bag clean all site sun are keyboard boat trust</p>
]]></content:encoded>
				</item>
</channel>
</rss>
