<?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 : 3rd edition</title>
	<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/</link>
	<description>Because programming should be fun</description>
	<pubDate>Mon, 08 Sep 2008 09:25:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Paul Barry</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-369</link>
		<author>Paul Barry</author>
		<pubDate>Thu, 11 Oct 2007 14:18:03 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-369</guid>
					<description>http://pastie.caboo.se/106153</description>
		<content:encoded><![CDATA[<p><a href="http://pastie.caboo.se/106153" rel="nofollow">http://pastie.caboo.se/106153</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: alex</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-370</link>
		<author>alex</author>
		<pubDate>Thu, 11 Oct 2007 14:44:37 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-370</guid>
					<description>http://pastie.caboo.se/106159</description>
		<content:encoded><![CDATA[<p><a href="http://pastie.caboo.se/106159" rel="nofollow">http://pastie.caboo.se/106159</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: jfcouture</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-371</link>
		<author>jfcouture</author>
		<pubDate>Thu, 11 Oct 2007 14:57:00 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-371</guid>
					<description>humm... why not use refactormycode.com instead of asking people to use pastie???</description>
		<content:encoded><![CDATA[<p>humm&#8230; why not use refactormycode.com instead of asking people to use pastie???</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-372</link>
		<author>Frank</author>
		<pubDate>Thu, 11 Oct 2007 15:14:50 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-372</guid>
					<description>By using RmC right now, it would be like having the same post at 2 different places. But it might not be a bad thing at all after all... let me correct the situation. I just realized that there was Trackback support on RmC</description>
		<content:encoded><![CDATA[<p>By using RmC right now, it would be like having the same post at 2 different places. But it might not be a bad thing at all after all&#8230; let me correct the situation. I just realized that there was Trackback support on RmC</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Pratik</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-374</link>
		<author>Pratik</author>
		<pubDate>Thu, 11 Oct 2007 16:07:56 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-374</guid>
					<description>http://pastie.caboo.se/106187</description>
		<content:encoded><![CDATA[<p><a href="http://pastie.caboo.se/106187" rel="nofollow">http://pastie.caboo.se/106187</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-375</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 16:12:43 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-375</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

...</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: macournoyer</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-376</link>
		<author>macournoyer</author>
		<pubDate>Thu, 11 Oct 2007 16:22:46 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-376</guid>
					<description>Hey Frank, thx a lot for the "ad"

Rubyize this was an inspiration for RefactorMyCode, so it's an honour to be used for it now!
Let me know if you got any problem/suggestion w/ the trackback system

I'll try to post a refactoring later today ;)</description>
		<content:encoded><![CDATA[<p>Hey Frank, thx a lot for the &#8220;ad&#8221;</p>
<p>Rubyize this was an inspiration for RefactorMyCode, so it&#8217;s an honour to be used for it now!<br />
Let me know if you got any problem/suggestion w/ the trackback system</p>
<p>I&#8217;ll try to post a refactoring later today <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: karmen</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-377</link>
		<author>karmen</author>
		<pubDate>Thu, 11 Oct 2007 16:30:02 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-377</guid>
					<description>here is my quick attempt: http://pastie.caboo.se/106192</description>
		<content:encoded><![CDATA[<p>here is my quick attempt: <a href="http://pastie.caboo.se/106192" rel="nofollow">http://pastie.caboo.se/106192</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Paul Barry</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-378</link>
		<author>Paul Barry</author>
		<pubDate>Thu, 11 Oct 2007 16:32:50 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-378</guid>
					<description>I think alex wins</description>
		<content:encoded><![CDATA[<p>I think alex wins</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-379</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 16:40:51 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-379</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

A reversed approach......</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>A reversed approach&#8230;&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-380</link>
		<author>Joshua</author>
		<pubDate>Thu, 11 Oct 2007 17:31:33 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-380</guid>
					<description>http://pastie.caboo.se/106218</description>
		<content:encoded><![CDATA[<p><a href="http://pastie.caboo.se/106218" rel="nofollow">http://pastie.caboo.se/106218</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-381</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 17:43:18 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-381</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

I did it two ways.  The first assumed that you had to stick with the input coming in as an array of words.  The second let you input it as a sentence, and also removed insults that were 'disguised' by punctuation.  This resulted in an ugly reg-exp, s...</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>I did it two ways.  The first assumed that you had to stick with the input coming in as an array of words.  The second let you input it as a sentence, and also removed insults that were &#8216;disguised&#8217; by punctuation.  This resulted in an ugly reg-exp, s&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-382</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 18:02:43 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-382</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

I think this is the more Rubyish I can get....</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>I think this is the more Rubyish I can get&#8230;.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-383</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 18:31:31 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-383</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

Huh, my previous solution didn't worked if the word was there twice, here a fixed one, in one line...</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>Huh, my previous solution didn&#8217;t worked if the word was there twice, here a fixed one, in one line&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-384</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 18:38:27 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-384</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

After noticing the issue with repetition, I figured we could also break it with mixing case. Here's a more robust solution ;)...</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>After noticing the issue with repetition, I figured we could also break it with mixing case. Here&#8217;s a more robust solution ;)&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-385</link>
		<author>RefactorMyCode.com</author>
		<pubDate>Thu, 11 Oct 2007 18:44:13 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-385</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

also refactored mine following Daniel advice but using /.../i syntax...</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>also refactored mine following Daniel advice but using /&#8230;/i syntax&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rick DeNatale</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-386</link>
		<author>Rick DeNatale</author>
		<pubDate>Thu, 11 Oct 2007 23:03:15 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-386</guid>
					<description>Well, my overall contribution is a bit too long for a pastie, although the final result is pretty short.

Check it out at &lt;a href="http://talklikeaduck.denhaven2.com/articles/2007/10/11/refactoring-with-continuous-testing-a-guided-tour" rel="nofollow"&gt;http://talklikeaduck.denhaven2.com/articles/2007/10/11/refactoring-with-continuous-testing-a-guided-tour&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Well, my overall contribution is a bit too long for a pastie, although the final result is pretty short.</p>
<p>Check it out at <a href="http://talklikeaduck.denhaven2.com/articles/2007/10/11/refactoring-with-continuous-testing-a-guided-tour" rel="nofollow">http://talklikeaduck.denhaven2.com/articles/2007/10/11/refactoring-with-continuous-testing-a-guided-tour</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Simon Gate</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-387</link>
		<author>Simon Gate</author>
		<pubDate>Fri, 12 Oct 2007 09:33:48 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-387</guid>
					<description>http://pastie.textmate.org/106501</description>
		<content:encoded><![CDATA[<p><a href="http://pastie.textmate.org/106501" rel="nofollow">http://pastie.textmate.org/106501</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Simon Gate</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-388</link>
		<author>Simon Gate</author>
		<pubDate>Fri, 12 Oct 2007 11:27:11 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-388</guid>
					<description>Haha, you always learn something new, didn't know that you could send a block to gsub (http://pastie.caboo.se/106159). Great to know. :)</description>
		<content:encoded><![CDATA[<p>Haha, you always learn something new, didn&#8217;t know that you could send a block to gsub (http://pastie.caboo.se/106159). Great to know. <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: hungryblank on RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-389</link>
		<author>hungryblank on RefactorMyCode.com</author>
		<pubDate>Fri, 12 Oct 2007 13:39:13 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-389</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

This solution uses a different regexp

/#{%w( stupid moron dumbass retard ).join('&#124;')}/i

generates this regexp

/stupid&#124;moron&#124;dumbass&#124;retard/i

that can be used to match any insult in the given sentence...</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>This solution uses a different regexp</p>
<p>/#{%w( stupid moron dumbass retard ).join(&#8217;|')}/i</p>
<p>generates this regexp</p>
<p>/stupid|moron|dumbass|retard/i</p>
<p>that can be used to match any insult in the given sentence&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: CSCI E-168 &#187; Blog Archive &#187; Ruby-ize this</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-390</link>
		<author>CSCI E-168 &#187; Blog Archive &#187; Ruby-ize this</author>
		<pubDate>Fri, 12 Oct 2007 16:48:41 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-390</guid>
					<description>[...] If you&#8217;re interested in making your code more ruby-esque, ruby fleebie has an ongoing feature called Ruby-ize this. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] If you&#8217;re interested in making your code more ruby-esque, ruby fleebie has an ongoing feature called Ruby-ize this. [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Refactoring of the week &#171; Marc-André Cournoyer&#8217;s blog</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-392</link>
		<author>Refactoring of the week &#171; Marc-André Cournoyer&#8217;s blog</author>
		<pubDate>Mon, 15 Oct 2007 03:02:44 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-392</guid>
					<description>[...] Frank Lamontagne from Ruby Fleebie and TimmyOnTime. He cross posted his last edition of the famous Rubyize this to RmC while using the trackback feature (allowing to send a trackback to your blog on each [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Frank Lamontagne from Ruby Fleebie and TimmyOnTime. He cross posted his last edition of the famous Rubyize this to RmC while using the trackback feature (allowing to send a trackback to your blog on each [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: namxam on RefactorMyCode.com</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-393</link>
		<author>namxam on RefactorMyCode.com</author>
		<pubDate>Wed, 17 Oct 2007 11:01:52 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-393</guid>
					<description>&lt;strong&gt;Rubyize this : 3rd edition...&lt;/strong&gt;

Based on the nice code from macournoyer, I would suggest a slightly different way of calling the method. Why not to extend the String object and make the function available to all strings. Oh, and added a conveenient way to change the "bad" words....</description>
		<content:encoded><![CDATA[<p><strong>Rubyize this : 3rd edition&#8230;</strong></p>
<p>Based on the nice code from macournoyer, I would suggest a slightly different way of calling the method. Why not to extend the String object and make the function available to all strings. Oh, and added a conveenient way to change the &#8220;bad&#8221; words&#8230;.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Vince</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-516</link>
		<author>Vince</author>
		<pubDate>Tue, 15 Jan 2008 00:42:33 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-516</guid>
					<description>Here's my solution way too late but I just discovered this blog. I consulted the others a little bit before arriving to my final solution.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my solution way too late but I just discovered this blog. I consulted the others a little bit before arriving to my final solution.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-517</link>
		<author>Frank</author>
		<pubDate>Tue, 15 Jan 2008 01:07:32 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rubyize-this-3rd-edition/#comment-517</guid>
					<description>@Vince, 

don't worry about being late, solutions are always welcome! Yours is very clean btw, I like it.</description>
		<content:encoded><![CDATA[<p>@Vince, </p>
<p>don&#8217;t worry about being late, solutions are always welcome! Yours is very clean btw, I like it.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
