<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>H3RALD: 10 Reasons to Learn Ruby</title>
    <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Fabio Cevasco's Writings</description>
    <item>
      <title>10 Reasons to Learn Ruby</title>
      <description>&lt;h3&gt;Preamble&lt;/h3&gt;


	&lt;p&gt;I discovered Ruby fairly recently, through the excellent Ruby on Rails framework&lt;sup&gt;&lt;a href="#fn1"&gt;1&lt;/a&gt;&lt;/sup&gt;. Although I don&amp;#8217;t consider myself a Ruby expert by any means, I read the PickAxe&lt;sup&gt;&lt;a href="#fn2"&gt;2&lt;/a&gt;&lt;/sup&gt;, I&amp;#8217;ve coded a few utilities for my personal use in Ruby and I&amp;#8217;m currently developing with Rails during my free time. 
Ruby is currently my programming language of choice; I started off with Turbo Pascal in high school, discovered C and C++ at university, did my thesis in Java and learned &lt;span class="caps"&gt;PHP&lt;/span&gt; from scratch because I wanted to learn how to make websites quickly and easily. I guess I feel compelled to code sometimes, more as a form of entertainment than anything else.  Rather dissatisfied with what I tried language-wise, I was determined to start learning either Python or Ruby. I chose the latter because I didn&amp;#8217;t want incorrect indentation to break my code&lt;sup&gt;&lt;a href="#fn3"&gt;3&lt;/a&gt;&lt;/sup&gt;, and here I am, heaping praise upon it.&lt;/p&gt;


	&lt;p&gt;There are plenty&lt;sup&gt;&lt;a href="#fn4"&gt;4&lt;/a&gt;&lt;/sup&gt; of introductions, tutorials, articles and essays of different sorts which aim to guide the novice and advise the guru on how to get the most out of Ruby. This article, however, is not one of them.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s more of a modest, humble, and incomplete list of a few reasons which may (or may not) entice you to use Ruby or at least play with it a bit. A word of caution: if you are using another programming language for work or whatever, don&amp;#8217;t complain to me if you don&amp;#8217;t want to use it anymore &amp;#8211; that&amp;#8217;s exactly what happened to me, but luckily, it didn&amp;#8217;t matter.  Ruby is a very beautiful and elegant language, but like all things of this sort, it may well poison your mind and corrupt your soul&amp;#8230;&lt;/p&gt;


	&lt;p&gt;You have been warned.&lt;/p&gt;


	&lt;h3&gt;Why learn Ruby?&lt;/h3&gt;


	&lt;h4&gt;#1 &amp;#8211; You get all the treats without the tricks&lt;/h4&gt;


	&lt;p&gt;Ruby borrows from all the best programming languages out there, from smalltalk to Java, Perl to Python&lt;sup&gt;&lt;a href="#fn5"&gt;5&lt;/a&gt;&lt;/sup&gt;. Basically, here&amp;#8217;s the features and functionalities Ruby gives you which you may have seen elsewhere:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;Exceptions:&lt;/em&gt; Believe it or not, exceptions are one of the most important things to master when developing any kind of application. &lt;span class="caps"&gt;PHP4&lt;/span&gt; programmers probably won&amp;#8217;t know anything about them and they&amp;#8217;ll tell you to just print stuff on the screen or use their &amp;#8220;extremely advanced&amp;#8221; class for error handling. Please, ignore them. Fortunately for all of us, Ruby comes with try/catch (or better, begin/rescue) blocks and a series of predefined, extensible Exceptions to handle errors properly.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;Namespaces:&lt;/em&gt; Ruby modules make excellent and easy-to-use namespaces, for the joy of Java and C++ enthusiasts.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;Built-in Regular Expressions:&lt;/em&gt; For all the Perl monkeys, you can put something between slashes and it will become a regular expression, ready to be matched with a =~ operator.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;Overloadable operators:&lt;/em&gt; Ruby lets you define operators like +, -, etc., for any of your classes.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;Packages:&lt;/em&gt; Called &amp;#8220;gems&amp;#8221;, they really are solid and precious indeed&amp;#8230;and they work! Packages support dependencies, and they can be either cross-platform or platform-dependent.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;Interactive Shell:&lt;/em&gt; the Interactive Ruby Shell can be used to test Ruby code instantly, similar to the Python console.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;Unit Testing&lt;/em&gt;: The &lt;code&gt;Test::Unit&lt;/code&gt; module makes things so easy that you really don&amp;#8217;t have any excuse not to test your code.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h4&gt;#2 &amp;#8211; You&amp;#8217;ll love the little things&lt;/h4&gt;


	&lt;p&gt;Ruby is elegant. Why&amp;#8217;s that? Because it doesn&amp;#8217;t focus on making code &lt;em&gt;concise&lt;/em&gt; so much as &lt;em&gt;readable and usable&lt;/em&gt;. Here are some tips to help you out:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt; You can use both &lt;em&gt;if&lt;/em&gt; and &lt;em&gt;unless&lt;/em&gt; in condition statements. Of course you can just use &lt;em&gt;if&lt;/em&gt; and negate the condition, but &lt;em&gt;unless&lt;/em&gt; can be less error-prone at times. Furthermore, you can use both operators as conditional modifiers, after a statement rather than before: &lt;em&gt;order.new unless order.exists&lt;/em&gt;.&lt;/li&gt;
		&lt;li&gt; You can use question marks and exclamation marks at the end of your methods. Although no convention is enforced, ? is added if the method should return true or false, while ! is used to clarify that the method does something forcefully, like destroying a database record, chopping off the last character of a string, etc.&lt;/li&gt;
		&lt;li&gt; You can use the &lt;em&gt;alias&lt;/em&gt; directives to create an alias for a method already defined. In this way you can have an &lt;em&gt;exist&lt;/em&gt; and an &lt;em&gt;exists&lt;/em&gt; method at no additional cost or repetition.&lt;/li&gt;
		&lt;li&gt; You can use the &lt;em&gt;attr_reader&lt;/em&gt;, &lt;em&gt;attr_writer&lt;/em&gt; or &lt;em&gt;attr_accessor&lt;/em&gt; directives to automatically generate getter and setter methods for specified class members.&lt;/li&gt;
		&lt;li&gt; Some naming conventions are enforced for your own sanity: constants, classes and modules are capitalized, methods and members must start with a lowercase letter; global variables are prepended by a $, instance variables by &lt;code&gt;@&lt;/code&gt; and class variables by &lt;code&gt;@@&lt;/code&gt;; etc.&lt;/li&gt;
		&lt;li&gt; Parentheses are optional in method calls.  You can therefore write &lt;em&gt;File.open(&amp;#8221;/home/h3rald/test.txt&amp;#8221;)&lt;/em&gt; or simply &lt;em&gt;File.open &amp;#8221;/home/h3rald/test.txt&amp;#8221;&lt;/em&gt;, which is particularly handy with methods that don&amp;#8217;t take parameters.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h4&gt;#3 &amp;#8211; You won&amp;#8217;t ever use a semicolon again&lt;/h4&gt;


	&lt;p&gt;You want to add another instruction? Just go on the next line. Hit &lt;return&gt; and you&amp;#8217;re done. In Ruby, like in Python, newlines matter and you don&amp;#8217;t have to remember to end your instructions with a semicolon. Unfortunately this means that you won&amp;#8217;t be able to write your whole program in a single line of code, like the C++ folks&amp;#8230; that&amp;#8217;s too bad, isn&amp;#8217;t it?&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;UPDATE&lt;/span&gt;:&lt;/strong&gt; Indeed you &lt;span class="caps"&gt;CAN&lt;/span&gt; use semicolons as line delimiters in Ruby as well, the point, however, is that you don&amp;#8217;t have to.&lt;/p&gt;


	&lt;h4&gt;#4 &amp;#8211; Everything is an object, as it should be&lt;/h4&gt;


	&lt;p&gt;When I studied Java they taught me that everything is an object.&lt;/p&gt;


	&lt;p&gt;&lt;em&gt;- &amp;#8220;So 14 and 374346.678 are objects then?&amp;#8221;&lt;/em&gt;
&lt;em&gt;- &amp;#8220;No, silly, they are numbers!&amp;#8221;&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;In Ruby, numbers, strings, Boolean values &lt;em&gt;et al&lt;/em&gt; are objects. Really. This means you&amp;#8217;ll write things like:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;YOU SHOULDN'T ALWAYS USE CAPITALS&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;.&lt;/span&gt;&lt;span class="ident"&gt;downcase&lt;/span&gt; &lt;span class="comment"&gt;#=&amp;gt; outputs &amp;quot;you shouldn't always use capitals&amp;quot;&lt;/span&gt;
&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="number"&gt;12&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;abs&lt;/span&gt; &lt;span class="comment"&gt;#=&amp;gt; outputs 12&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;instead of something like:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="comment"&gt;# PHP Code&lt;/span&gt;

&lt;span class="ident"&gt;strtolower&lt;/span&gt;&lt;span class="punct"&gt;(&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;YOU SHOULDN'T ALWAYS USE CAPITALS&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;);&lt;/span&gt;
&lt;span class="ident"&gt;abs&lt;/span&gt;&lt;span class="punct"&gt;(-&lt;/span&gt;&lt;span class="number"&gt;12&lt;/span&gt;&lt;span class="punct"&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;You save time, you save brackets, and it just makes more sense.&lt;/p&gt;


	&lt;h4&gt;#5 &amp;#8211; Everything has a value&lt;/h4&gt;


	&lt;p&gt;Or &amp;#8220;you&amp;#8217;ll hardly ever use return to return values&amp;#8221;. In a nutshell, all Ruby instructions return a value, even variable assignments, so you don&amp;#8217;t really need to use the &amp;#8220;return&amp;#8221; keyword at the end of a method; the value of the last assignment or &lt;em&gt;any&lt;/em&gt; other expression will always be returned.&lt;/p&gt;


	&lt;h4&gt;#6 &amp;#8211; You can alter your environment in any way you like&lt;/h4&gt;


The first time I saw this, it really freaked me out. Imagine a typical programming situation: you start using a system class or a class written by someone else and you notice that you&amp;#8217;d like to have an additional method. At this point you have a few ways to handle this in ordinary programming languages:
s
	&lt;ul&gt;
	&lt;li&gt;You modify the developer&amp;#8217;s source code, if you have access to it. This is normally not a good idea, and you shouldn&amp;#8217;t do it.&lt;/li&gt;
		&lt;li&gt;You derive a new class from the original one, and you implement the new method there. This is a good idea, but it could be overkill for just one method, and you may have to update some of your other code accordingly.&lt;/li&gt;
		&lt;li&gt;You give up, and you just create the method outside the class, somewhere else. This can be done, but it is not very elegant and goes against Object Oriented Programming.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;In Ruby, you can simply add the method to the original class, without having to hack the original source code, and even for system classes! You want to have a method to automatically convert a measurement from meters to feet? You can simply extend the Numeric class as follows:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="keyword"&gt;class &lt;/span&gt;&lt;span class="class"&gt;Numeric&lt;/span&gt;
  &lt;span class="keyword"&gt;def &lt;/span&gt;&lt;span class="method"&gt;feet&lt;/span&gt;
    &lt;span class="constant"&gt;self&lt;/span&gt;&lt;span class="punct"&gt;*&lt;/span&gt;&lt;span class="number"&gt;3.2808399&lt;/span&gt;
  &lt;span class="keyword"&gt;end&lt;/span&gt;
&lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;From now on, all your numbers will have a &lt;em&gt;feet&lt;/em&gt; method, which can be used just like any other method that was originally defined for the class:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="number"&gt;5&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;feet&lt;/span&gt; &lt;span class="comment"&gt;#=&amp;gt; Returns 16.4041995&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Basically, Ruby classes are never closed and can be modified at any time from anywhere. Use with care, of course.&lt;/p&gt;


	&lt;h4&gt;#7 You won&amp;#8217;t get unicorns from birds and horses, but you&amp;#8217;ll still get donkeys if you want&lt;/h4&gt;


	&lt;p&gt;I distinctly remember my C++ professor at university using animals to illustrate key object-oriented concepts like classes and inheritance. Weird things came in when she tried to explain multiple inheritance to inherit a class Pegasus from a class Bird and a class Horse. It had methods like &amp;#8220;fly&amp;#8221; and &amp;#8220;neigh&amp;#8221;&amp;#8230; crazy stuff, anyhow, Ruby does not offer multiple inheritance. 
This seems to be the trend, after all, and of course it&amp;#8217;s up to tastes. I don&amp;#8217;t quite fancy multiple inheritances, as they may lead to unpredictable things. Nevertheless, it is possible to create &amp;#8220;mix-ins&amp;#8221; using Ruby modules, so that members and methods defined in a module will be added to a particular class if the module is included in it.&lt;/p&gt;


	&lt;h4&gt;#8 You don&amp;#8217;t really need &lt;span class="caps"&gt;XML&lt;/span&gt;&lt;/h4&gt;


	&lt;p&gt;&lt;span class="caps"&gt;XML&lt;/span&gt; is a nice, general-purpose markup language which can be processed by every programming language and used everywhere. Unfortunately, it can also be quite verbose to write, very difficult to parse, and let&amp;#8217;s be honest, it&amp;#8217;s not really readable at first glance in many cases, unlike the following code snippet:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_yaml "&gt;&lt;span class="key"&gt;regexp&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="type"&gt;!ruby/regexp&lt;/span&gt; /a-zA-Z/
&lt;span class="key"&gt;number&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; 4.7
&lt;span class="key"&gt;string&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; a string&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;This is definitely easier and more readable than &lt;span class="caps"&gt;XML&lt;/span&gt;, isn&amp;#8217;t it? Welcome to &lt;span class="caps"&gt;YAML&lt;/span&gt;, Ruby&amp;#8217;s favorite markup (but not really&lt;sup&gt;&lt;a href="#fn6"&gt;6&lt;/a&gt;&lt;/sup&gt;) language, which can be used to represent any Ruby object in a simple, clear and yet complete way. 
Ruby &lt;em&gt;can&lt;/em&gt; parse &lt;span class="caps"&gt;XML&lt;/span&gt;, but &lt;span class="caps"&gt;YAML&lt;/span&gt;&amp;#8217;s simplicity convinced a lot of developers to use it as an alternative to &lt;span class="caps"&gt;XML&lt;/span&gt; for configuration files, for example (Rails does this).
The code snipped presented before was obtained by executing the following line of Ruby code:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="punct"&gt;{&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;string&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;a string&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;,&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;number&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="number"&gt;4.7&lt;/span&gt;&lt;span class="punct"&gt;,&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;regexp&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="regex"&gt;a-zA-Z&lt;/span&gt;&lt;span class="punct"&gt;/}.&lt;/span&gt;&lt;span class="ident"&gt;to_yaml&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;The &lt;em&gt;to_yaml&lt;/em&gt; method is defined for the Object class, which is the father of all of the other classes, and thus it is available in all Ruby objects. This means that you can convert anything into &lt;span class="caps"&gt;YAML&lt;/span&gt; &lt;em&gt;and&lt;/em&gt; re-convert anything back into Ruby objects, with total transparency for the developer. So much for parsing, huh?&lt;/p&gt;


	&lt;h4&gt;#9 Lambda is much more than a Greek letter&lt;/h4&gt;


	&lt;p&gt;Ruby borrows some magic from Lisp and Perl with Proc objects and blocks. Procs are _&amp;#8220;blocks of code that have been bound to a set of local variables. Once bound, the code may be called in different contexts and still access those variables.&amp;#8221; _&lt;sup&gt;&lt;a href="#fn7"&gt;7&lt;/a&gt;&lt;/sup&gt; Consider the following:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;   &lt;span class="keyword"&gt;def &lt;/span&gt;&lt;span class="method"&gt;gen_times&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="ident"&gt;factor&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt;
     &lt;span class="keyword"&gt;return&lt;/span&gt; &lt;span class="constant"&gt;Proc&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;new&lt;/span&gt; &lt;span class="punct"&gt;{|&lt;/span&gt;&lt;span class="ident"&gt;n&lt;/span&gt;&lt;span class="punct"&gt;|&lt;/span&gt; &lt;span class="ident"&gt;n&lt;/span&gt;&lt;span class="punct"&gt;*&lt;/span&gt;&lt;span class="ident"&gt;factor&lt;/span&gt; &lt;span class="punct"&gt;}&lt;/span&gt;
   &lt;span class="keyword"&gt;end&lt;/span&gt;

   &lt;span class="ident"&gt;times3&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="ident"&gt;gen_times&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="number"&gt;3&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt;
   &lt;span class="ident"&gt;times5&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="ident"&gt;gen_times&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="number"&gt;5&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt;

   &lt;span class="ident"&gt;times3&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;call&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="number"&gt;12&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt;               &lt;span class="comment"&gt;#=&amp;gt; 36&lt;/span&gt;
   &lt;span class="ident"&gt;times5&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;call&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="number"&gt;5&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt;                &lt;span class="comment"&gt;#=&amp;gt; 25&lt;/span&gt;
   &lt;span class="ident"&gt;times3&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;call&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="ident"&gt;times5&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;call&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="number"&gt;4&lt;/span&gt;&lt;span class="punct"&gt;))&lt;/span&gt;   &lt;span class="comment"&gt;#=&amp;gt; 60&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;I could have used the &lt;em&gt;lambda&lt;/em&gt; method instead of &lt;em&gt;Proc.new&lt;/em&gt; and gotten the same result. This should ring a bell for people who know Perl and Python (or Lisp)[8].  You can do the same thing in &lt;span class="caps"&gt;PHP&lt;/span&gt; as well, but most people don&amp;#8217;t really use the function.[9]&lt;/p&gt;


	&lt;p&gt;Additionally, Ruby makes extensive use of blocks, sort of &amp;#8220;unborn Procs&amp;#8221;[10], for example, to iterate the contents of an object and execute some code, like the &lt;em&gt;each&lt;/em&gt; method available for the Array class:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="punct"&gt;[&lt;/span&gt;&lt;span class="number"&gt;1&lt;/span&gt;&lt;span class="punct"&gt;,&lt;/span&gt; &lt;span class="number"&gt;2&lt;/span&gt;&lt;span class="punct"&gt;,&lt;/span&gt; &lt;span class="number"&gt;4&lt;/span&gt;&lt;span class="punct"&gt;,&lt;/span&gt; &lt;span class="number"&gt;6&lt;/span&gt;&lt;span class="punct"&gt;,&lt;/span&gt; &lt;span class="number"&gt;8&lt;/span&gt;&lt;span class="punct"&gt;].&lt;/span&gt;&lt;span class="ident"&gt;each&lt;/span&gt; &lt;span class="punct"&gt;{|&lt;/span&gt;&lt;span class="ident"&gt;c&lt;/span&gt;&lt;span class="punct"&gt;|&lt;/span&gt; &lt;span class="ident"&gt;puts&lt;/span&gt; &lt;span class="ident"&gt;c&lt;/span&gt;&lt;span class="punct"&gt;*&lt;/span&gt;&lt;span class="number"&gt;2&lt;/span&gt;&lt;span class="punct"&gt;}&lt;/span&gt; &lt;span class="comment"&gt;#=&amp;gt; outputs each element multiplied by 2 in a new line. &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Should the code in the block exceed one line, you&amp;#8217;re advised (but not required) to include the block within &lt;em&gt;do &amp;#8230; end&lt;/em&gt; instead of using braces. Ruby folks don&amp;#8217;t like braces much, really.&lt;/p&gt;


	&lt;h4&gt;#10 &amp;#8211; You can go on Rails&lt;/h4&gt;


	&lt;p&gt;Last but not least, you can always use Ruby on Rails for developing web applications. Deployment may not be as easy as it is with &lt;span class="caps"&gt;PHP&lt;/span&gt;, but Rails was built in Ruby because Ruby has features no other language can offer.&lt;/p&gt;


	&lt;h3&gt;Conclusion&lt;/h3&gt;


	&lt;p&gt;Time&amp;#8217;s up. You&amp;#8217;ve probably made up your mind about Ruby already, and you are either playing with it already, or you&amp;#8217;re totally ignoring it.  However, the next time you&amp;#8217;re frustrated because your code looks ugly and you think you could have done the same thing with half the code you got, don&amp;#8217;t blame me!&lt;/p&gt;


	&lt;h3&gt;Notes&lt;/h3&gt;


	&lt;p id="fn1"&gt;&lt;sup&gt;1&lt;/sup&gt; &lt;a href="http://www.rubyonrails.org"&gt;Ruby on Rails&lt;/a&gt;, &lt;span class="caps"&gt;MVC&lt;/span&gt; Web Development Framework.&lt;/p&gt;


	&lt;p id="fn2"&gt;&lt;sup&gt;2&lt;/sup&gt; &lt;a href="http://www.pragmaticprogrammer.com/title/ruby/index.html" title="2nd Ed."&gt;Programming Ruby&lt;/a&gt;, by Dave Thomas &amp;#38; others, Pragmatic Programmers, 2004&lt;/p&gt;


	&lt;p id="fn3"&gt;&lt;sup&gt;3&lt;/sup&gt; Not entirely correct, but sort of. For more information on Python&amp;#8217;s indentation rules and myths, read &lt;a href="http://www.secnetix.de/~olli/Python/block_indentation.hawk"&gt;Python: Myths about Indentation&lt;/a&gt;.&lt;/p&gt;


	&lt;p id="fn4"&gt;&lt;sup&gt;4&lt;/sup&gt; For a list of Ruby tutorials, refer to the &lt;a href="http://www.ruby-lang.org/en/documentation/"&gt;Documentation&lt;/a&gt; section of the Official Ruby Website.&lt;/p&gt;


	&lt;p id="fn5"&gt;&lt;sup&gt;5&lt;/sup&gt; For more information on Ruby, and in particular on the similarities and differences with other languages, refer to &lt;a href="http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/"&gt;Ruby from Other Languages&lt;/a&gt;.&lt;/p&gt;


	&lt;p id="fn6"&gt;&lt;sup&gt;6&lt;/sup&gt; YAML is Not a Markup Language.&lt;/p&gt;


	&lt;p id="fn7"&gt;&lt;sup&gt;7&lt;/sup&gt; Definition and example taken from the official Ruby documentation for class &lt;a href="http://www.ruby-doc.org/core/classes/Proc.html"&gt;Proc&lt;/a&gt;.&lt;/p&gt;


	&lt;p id="fn8"&gt;&lt;sup&gt;8&lt;/sup&gt; For some example on lambda functions in Python, see &lt;a href="http://www.secnetix.de/~olli/Python/lambda_functions.hawk"&gt;Python: Lambda Functions&lt;/a&gt;.&lt;/p&gt;


	&lt;p id="fn9"&gt;&lt;sup&gt;9&lt;/sup&gt; For examples of &amp;#8220;lambda functions&amp;#8221; in &lt;span class="caps"&gt;PHP&lt;/span&gt; using create_function(), see &lt;a href="http://www.webmasterworld.com/forum88/7414.htm"&gt;this&lt;/a&gt;.&lt;/p&gt;


	&lt;p id="fn10"&gt;&lt;sup&gt;10&lt;/sup&gt; For more detailed information on Ruby&amp;#8217;s Procs, blocks etc. refer to &lt;a href="http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods"&gt;Understanding Ruby blocks, Procs and methods&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:40:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:23ab32e1-1124-4fe1-8466-471262e85d21</guid>
      <author>h3rald</author>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby</link>
      <category>Articles</category>
      <category>ruby</category>
      <trackback:ping>http://www.h3rald.com/trackback/entries/117</trackback:ping>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by http://prayas.blogvis.com/</title>
      <description>&lt;p&gt;liked your article and visitors arguments.
Ruby rockssssss.&lt;/p&gt;</description>
      <pubDate>Mon, 07 Apr 2008 08:44:16 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:2e989af5-94be-4d82-b360-a7c5e4ea6952</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-228</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by el_vartauy</title>
      <description>&lt;p&gt;good list, but&amp;#8230; why if you don&amp;#8217;t like the python indentation problems, you prefer yaml over xml?
i think a handy built in method is not enough?
good luck!&lt;/p&gt;</description>
      <pubDate>Tue, 23 Oct 2007 13:04:15 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:218de1a7-ecce-4caf-92e7-62c1c7f6ff1f</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-105</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by riffraff</title>
      <description>&lt;p&gt;good list, but a detail: lambda is a method, not a keyword :) 
&amp;gt;&amp;gt; Kernel.method :lambda
=&amp;gt; #&lt;/p&gt;</description>
      <pubDate>Sun, 07 Oct 2007 13:32:11 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:c77c25d3-1964-41c6-bb19-de10f5c013b0</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-100</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by toby</title>
      <description>&lt;p&gt;Python, en, i like it.
Ruby, nothing&lt;/p&gt;</description>
      <pubDate>Mon, 24 Sep 2007 20:28:58 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:d58da4a6-9b76-4202-a134-5a4663744491</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-89</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Fielding Feng</title>
      <description>&lt;p&gt;10 reasons that describe in this article are either already exist in Java, or not very useful to me.  Except the unless  condition.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Sep 2007 15:13:46 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:cf183b95-118e-4479-9729-bb0d85c78724</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-84</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Anders Persson</title>
      <description>&lt;p&gt;Hmm start to get old, i don&amp;#8217;t know what a Blub is, 
But i guess it some one don&amp;#8217;t like eg Ruby.
I can&amp;#8217;t talk for others, just for me.
I like the syntax, and the language
I have written a script to build my company software on Windows, looked a Perl as i have worked with before but thout that i could be nice to test Ruby, and it did a great jobb, easy to read etc.
But to start using it as regular no 1 language i still missing easy GUI stuff like in Java.
Maby you thing i am a &amp;#8220;Blub&amp;#8221; if so okej a put it on my card &lt;strong&gt;smile&lt;/strong&gt;
// Anders&lt;/p&gt;</description>
      <pubDate>Sun, 16 Sep 2007 12:23:54 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:df6e66be-16c9-4a5e-9e2f-ef1105951d28</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-83</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Anon</title>
      <description>&lt;p&gt;Do I smell Blub programmers in the previous two comments?&lt;/p&gt;</description>
      <pubDate>Sat, 15 Sep 2007 01:06:43 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:08cb5caa-1503-4067-a08e-79bcda35e8bb</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-74</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Anders Persson</title>
      <description>&lt;p&gt;Still Java and C# have nice built-in GUI handling, and i don&amp;#8217;t have to download a lot of package like TCL/TK.
Ok Ruby like other language is nice, but for people like me that have to develop GUI-apps from time to time Java and C# still is my choice.&lt;/p&gt;


	&lt;p&gt;I was looking into Ruby, and it is nice but&amp;#8230;
Maby the language expands in the future.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Sep 2007 12:15:45 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:a24e694a-e544-43d5-b26e-ce9b28f5651d</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-73</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by wefwefwef</title>
      <description>&lt;p&gt;10 reasons to NOT learn ruby:&lt;/p&gt;


	&lt;p&gt;1. It&amp;#8217;s Shit
2. It&amp;#8217;s Shit
3. It&amp;#8217;s Shit
4. It&amp;#8217;s Shit
5. It&amp;#8217;s Shit
6. It&amp;#8217;s Shit
7. It&amp;#8217;s Shit
8. It&amp;#8217;s Shit
9. It&amp;#8217;s Shit
10. It&amp;#8217;s Shit&lt;/p&gt;</description>
      <pubDate>Fri, 14 Sep 2007 09:21:17 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:2a804230-7676-41d7-9047-2f434c2a9316</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-72</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Josh S.</title>
      <description>&lt;p&gt;Very interesting&amp;#8212;makes me more interested in Ruby than I&amp;#8217;ve ever been.&lt;/p&gt;


	&lt;p&gt;BTW, your PHP number example is missing semicolons.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Sep 2007 07:25:12 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:51da8ede-e775-48bb-9689-37acabac4004</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-70</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by wayne</title>
      <description>&lt;p&gt;&#25105;&#20102;&#35299;ruby&#65292;&#20294;&#26159;&#30475;&#23436;&#21518;&#25105;&#20915;&#23450;&#24320;&#22987;&#23398;&#20064;ruby&lt;/p&gt;</description>
      <pubDate>Wed, 12 Sep 2007 20:11:39 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:869fb20e-21da-4972-88a9-9504f5bdf434</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-68</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by jim</title>
      <description>&lt;p&gt;And make sure to read through resources such as &lt;a href="http://snippets.dzone.com/tag/ruby" rel="nofollow"&gt;http://snippets.dzone.com/tag/ruby&lt;/a&gt; as well. A real time saver from time to time!&lt;/p&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:19:28 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:cec7da3e-9087-4306-8936-cf1a61dd5f19</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-67</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by &#26085;</title>
      <description>&lt;p&gt;&#26085;&#65292;&#25105;&#37117;&#30475;&#19981;&#25026;&lt;/p&gt;</description>
      <pubDate>Tue, 11 Sep 2007 23:47:37 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:c3d42161-7e51-484d-932c-5945ba930461</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-66</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Erik Ordway</title>
      <description>&lt;p&gt;The thing that everyone always seems to forget about XML is that it was never meant to be read/written buy humans.  It was and is meant to be a cross language/platform transport methodology.  It is easy process on each end without having to dealt with things like big and small endingness , line feed and carriage returns in files, and crap like that.  The core of it is that if you personally are reading or writing XML then you are doing something wrong.  Ant on java being a classic exampl, it was not even valid xml.  
All that said I love Ruby too.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Sep 2007 16:13:26 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1c3ea0ff-0ad8-4b42-be8d-a6b6a671a701</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-64</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Fabio Cevasco</title>
      <description>&lt;p&gt;@Shantanu: I am now, they sound interesting actually.&lt;/p&gt;


	&lt;p&gt;@Steffen: You&amp;#8217;re 100% right. This was due to the fact that I accidentally stripped all the &amp;gt; symbols out of the article when I converted it from BBCode to Textile. Thanks!&lt;/p&gt;</description>
      <pubDate>Tue, 11 Sep 2007 15:19:18 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:f63821d2-bac4-415e-a779-56e01a496b3f</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-63</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Steffen</title>
      <description>&lt;p&gt;Correction for #8:&lt;/p&gt;


	&lt;p&gt;The syntax for hash initializers is&lt;/p&gt;


	&lt;p&gt;{ :key1 =&amp;gt; value1, :key2 =&amp;gt; value2, &amp;#8230; }&lt;/p&gt;


	&lt;p&gt;(&amp;#8217;=&amp;gt;&amp;#8217; instead of just &amp;#8217;=&amp;#8217;)&lt;/p&gt;


	&lt;p&gt;&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Tue, 11 Sep 2007 13:06:52 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:06198550-523f-4579-b7a0-8d1ab4a30e9a</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-62</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Shantanu</title>
      <description>&lt;p&gt;Have you taken a look at Scala, or Erlang?&lt;/p&gt;</description>
      <pubDate>Mon, 10 Sep 2007 01:29:01 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b645df51-2328-4ac4-98d9-3c8843e425ca</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-61</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by FlySwat</title>
      <description>&lt;p&gt;So ruby has all of the features that C# has, except that its slower.&lt;/p&gt;


	&lt;p&gt;Cool!&lt;/p&gt;</description>
      <pubDate>Sat, 08 Sep 2007 10:35:29 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:08c90e00-24fd-4eac-982f-ff3d9add39f2</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-60</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by IronRuby</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;Nice and happy to see your 10 Reasons added to &lt;a href="http://ironruby.blogspot.com/2007/09/many-reasons-to-fall-in-love-with.html" rel="nofollow"&gt;10 another advantages&lt;/a&gt; on a blog that is based on IronRuby.&lt;/p&gt;


	&lt;p&gt;The Author claims 10 + 10 Advantages as 100 rather tan 20.&lt;/p&gt;


	&lt;p&gt;Happy Reading there.&lt;/p&gt;</description>
      <pubDate>Sat, 08 Sep 2007 01:39:38 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:440b08a9-e95a-42bf-9b09-94d524597324</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-57</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Kookoolen</title>
      <description>&lt;p&gt;Nice article.&lt;/p&gt;


	&lt;p&gt;For feature #4, you should add that even nil is an object. Try nil.to_i for example.&lt;/p&gt;


	&lt;p&gt;Moreover you can open NilClass and add your own methods ! Rails does so to add debugging information when you called a method on nil.&lt;/p&gt;</description>
      <pubDate>Sat, 08 Sep 2007 01:33:11 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:07e11acd-8c8d-4bd9-92b1-6bff68414046</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-56</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Fabio Cevasco</title>
      <description>&lt;p&gt;@Masklinn: Thanks a lot for your comment. I updated the article where necessary!&lt;/p&gt;</description>
      <pubDate>Fri, 07 Sep 2007 05:44:25 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:ee5e1e9b-5803-4cb9-8b6d-0e733c5cf510</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-55</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Masklinn</title>
      <description>&lt;p&gt;&amp;gt; Interactive Shell: the Interactive Ruby Shell can be used to test Ruby code instantly, similar to the Python console.&lt;/p&gt;


	&lt;p&gt;Similar, but much much worse. The Python consoles (both CLI launched by typing &amp;#8220;python&amp;#8221; and the IDLE environment) are more flexible, more practical and much less annoying than IRB (I suppose that&amp;#8217;s what you were talking about)&lt;/p&gt;


	&lt;p&gt;&amp;gt; Unfortunately this means that you won&#8217;t be able to write your whole program in a single line of code, like the C++ folks&#8230;that&#8217;s too bad, isn&#8217;t it?&lt;/p&gt;


	&lt;p&gt;In reality, you can. The statement terminator (in both Ruby and Python) is either a newline or &amp;#8221;;&amp;#8221;.&lt;/p&gt;


	&lt;p&gt;So you can write your whole Ruby program on a single line, I think (you&amp;#8217;d need to use parens to define functions, but it can be done.&lt;/p&gt;


	&lt;p&gt;&amp;gt; Everything is an object, as it should be&lt;/p&gt;


	&lt;p&gt;I think you should use examples with things that aren&amp;#8217;t objects in &amp;#8220;popular&amp;#8221; languages, such as integers or booleans, or even `nil`. Strings aren&amp;#8217;t object in PHP because PHP barely has objects, so it&amp;#8217;s not really fair.&lt;/p&gt;


	&lt;p&gt;&amp;gt; Everything has a value&lt;/p&gt;


	&lt;p&gt;You should emphasize that point by showing that e.g. if/else blocks return a value.&lt;/p&gt;


	&lt;p&gt;&amp;gt; the value of the last assignment will always be returned.&lt;/p&gt;


	&lt;p&gt;Didn&amp;#8217;t you mean &amp;#8220;the last value evaluated&amp;#8221; or &amp;#8220;the value of the last expression&amp;#8221;? Because you definitely aren&amp;#8217;t limited to assignments.&lt;/p&gt;


	&lt;p&gt;&amp;gt; You can do the same thing in PHP as well, but most people don&#8217;t really use the function.&lt;/p&gt;


	&lt;p&gt;Because it&amp;#8217;s ugly, hackish, and since you create functions by providing strings there is no syntax checking before runtime itself.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Sep 2007 05:17:28 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3cdc144e-08d2-442a-b32e-006304130c31</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-54</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Frank Spychalski</title>
      <description>&lt;p&gt;Very nice writeup. I totally agree.&lt;/p&gt;


	&lt;p&gt;There&amp;#8217;s only one thing I really hate about Ruby: it made me realize how bad the other languages are and took a lot of fun out of the &amp;#8220;normal&amp;#8221; software development.&lt;/p&gt;


	&lt;p&gt;Right now I have to code PHP (BTW, Joel is 100% correct, CakePHP is a pretty good framework and makes working with PHP bearable) and more than a few times every day I would like to puke because the language sucks.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Sep 2007 03:14:21 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:4ce9287a-7134-40a2-be0a-df7ccb0260d3</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-53</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Chris</title>
      <description>&lt;p&gt;Thanks so much for this. I&amp;#8217;ve been teaching myself to program for several months now with Ruby, and this very much helped me put things I&amp;#8217;ve learned into context.&lt;/p&gt;</description>
      <pubDate>Thu, 06 Sep 2007 07:57:42 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1faa0be8-029f-44b3-8440-ec384e1ad725</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-51</link>
    </item>
    <item>
      <title>"10 Reasons to Learn Ruby" by Fabio Cevasco</title>
      <description>&lt;p&gt;@Joel: Glad you discovered Ruby! Good luck!&lt;/p&gt;


	&lt;p&gt;@Paddy: You&amp;#8217;re right. I should have mentioned at least testing. I updated the article (Reason #1) to at least mention Test::Unit. And yes, as a matter of fact since I&amp;#8217;ve been using Ruby my code indentation definitely makes more sense. You seem to be a Python enthusiast, from your site at least: sorry about the silly  remark about Python&amp;#8217;s indentation in my article&amp;#8230; I just couldn&amp;#8217;t resist (but I did added an interesting note about Python&amp;#8217;s indentation in the notes too).&lt;/p&gt;</description>
      <pubDate>Thu, 06 Sep 2007 01:07:24 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:d9c14b6d-3959-4b0d-b9ce-70aebdf16b01</guid>
      <link>http://www.h3rald.com/articles/10-reasons-to-learn-ruby#comment-50</link>
    </item>
  </channel>
</rss>
