<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Giordano Scalzo&#039;s Personal Blog &#187; challenge</title>
	<atom:link href="http://giordano.scalzo.biz/tag/challenge/feed/" rel="self" type="application/rss+xml" />
	<link>http://giordano.scalzo.biz</link>
	<description>Just another useless weblog</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:41:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby Programming Challenge For Newbies: a chance to improve Ruby knowledge</title>
		<link>http://giordano.scalzo.biz/2009/10/05/ruby-programming-challenge-for-newbies-a-chance-to-improve-ruby-knowledge/</link>
		<comments>http://giordano.scalzo.biz/2009/10/05/ruby-programming-challenge-for-newbies-a-chance-to-improve-ruby-knowledge/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 09:05:01 +0000</pubDate>
		<dc:creator>giordano scalzo</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[challenge]]></category>
		<category><![CDATA[RPCFN]]></category>

		<guid isPermaLink="false">http://giordano.scalzo.biz/?p=157</guid>
		<description><![CDATA[Some day ago, I stumbled upon on a post by Satish Talim in his useful Ruby Learning Blog, announcing a Ruby Quiz for Newbies:
what a wonderful opportunity to learn better Ruby and Rspec!
The first challenge was proposed by a Fabio Akita, a well know Ruby and Rails evangelist, and it&#8217;s about a script that add, [...]]]></description>
			<content:encoded><![CDATA[<p>Some day ago, I stumbled upon on a post by <a href="http://satishtalim.com/">Satish Talim</a> in his useful <a href="http://rubylearning.com/blog/">Ruby Learning Blog</a>, announcing a <a href="http://rubylearning.com/blog/2009/09/24/rpcfn-shift-subtitle-1/">Ruby Quiz for Newbies</a>:<br />
what a wonderful opportunity to learn better Ruby and Rspec!</p>
<p>The first challenge was proposed by a <a href="http://akitaonrails.com/">Fabio Akita</a>, a well know Ruby and Rails evangelist, and it&#8217;s about a script that add, or subtract, an amount of time from a subtitles file.</p>
<p>I discovered the challenge a bit late, so I&#8217;d to rush to complete it in time, but I&#8217;m quite satisfied with the result; I don&#8217;t like the <em>IF</em> in main method, and it&#8217;s lack a robust correctness checking of command line&#8217;s arguments: I&#8217;ll try to remove explicit conditions and clean more in next challenge.</p>
<p>I pushed my attempt to <em>GitHub</em>, <a href="http://github.com/gscalzo/ShiftSubtitle">http://github.com/gscalzo/ShiftSubtitle</a>, so I can improved it, after seeing other partecipants&#8217; entries.</p>
<p>I have to credit solution to check <code>System.exit</code> to <a href="http://www.deploymentzone.com/2009/09/26/ruby-mocking-kernel-exit/">Charles Feduke</a>: Thanx Charles!<br />
Next quiz is scheduled for 9th Oct. 2009 proposed by <a href="http://japhr.blogspot.com/">Chris Strom</a>: I really looking forward to it!</p>
<p><strong>Update</strong><br />
<a href="http://rubylearning.com/blog/2009/09/24/rpcfn-shift-subtitle-1/comment-page-1/#comment-119475">I have to buy a mac</a>!  <img src='http://giordano.scalzo.biz/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/challenge' rel='tag' target='_self'>challenge</a>, <a class='technorati-link' href='http://technorati.com/tag/RPCFN' rel='tag' target='_self'>RPCFN</a>, <a class='technorati-link' href='http://technorati.com/tag/ruby' rel='tag' target='_self'>ruby</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://giordano.scalzo.biz/2009/10/05/ruby-programming-challenge-for-newbies-a-chance-to-improve-ruby-knowledge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
