<?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>my2cents &#187; Ruby</title>
	<atom:link href="http://www.frightanic.com/category/software-development/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frightanic.com</link>
	<description>&#34;The Earth was made round so that we would not see too far down the road&#34; - Karen Blixen</description>
	<lastBuildDate>Fri, 30 Jul 2010 19:10:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Learning Ruby</title>
		<link>http://www.frightanic.com/2007/04/07/learning-ruby/</link>
		<comments>http://www.frightanic.com/2007/04/07/learning-ruby/#comments</comments>
		<pubDate>Sat, 07 Apr 2007 09:11:40 +0000</pubDate>
		<dc:creator>frightanic</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://frightanic.wordpress.com/2007/04/07/learning-ruby/</guid>
		<description><![CDATA[For various reasons my wife and I decided to stay home this Easter. This gives her time to prepare an upcoming business meeting in Tokyo and I, well, I decided to step into the Ruby swamp this weekend. Dave Thomas&#8217; &#8220;Programming Ruby&#8221; has been laying around for some months now, but I never really get [...]]]></description>
			<content:encoded><![CDATA[<p>For various reasons my wife and I decided to stay home this Easter. This gives her time to prepare an upcoming business meeting in Tokyo and I, well, I decided to step into the Ruby swamp this weekend. <a href="http://www.pragmaticprogrammer.com/titles/ruby/index.html">Dave Thomas&#8217; &#8220;Programming Ruby&#8221;</a> has been laying around for some months now, but I never really get around to dig into it.</p>
<p>I&#8217;ve made it through the first few chapters of the book. Ruby is installed on my MacBook (it came preconfigured) and on my Windows 2000 PC, I installed the <a href="http://rubyeclipse.sourceforge.net/">RDT plugin</a> for both Eclipse installations and wrote my first Ruby classes.</p>
<p>I&#8217;m still waiting to be impressed.</p>
<p>I never liked cryptic programming languages &#8211; that&#8217;s why I never learned Perl. And that&#8217;s probabely the reason why I still like the verbosity of Java after so many years. I like expressive grammar/APIs because I&#8217;ve been working with good IDEs all the time. If I didn&#8217;t have code completion and code templates things would probably be different. I&#8217;m not at all more productive just because I have to write fewer characters to achieve the same functionality.<br />
Don&#8217;t get me wrong, I&#8217;m not (yet?) ranting about Ruby. So far, its grammar is simply not appealing to me and I know too little about the language to judge whether its claimed advantages over other languages will offset this.</p>
<ul>
<li>It&#8217;s nice to inject something into a string with <code>"Hello #theNameVariable"</code> instead of writing <code>"Hello " + theNameVariable</code> but I prefer the expressive version.</li>
<li>What&#8217;s the point in syntactically separating instance variables <code>@name</code> from class variables (static variables in Java) <code>@@name</code>? The source code will become cluttered up with special characters &#8211; yuck.</li>
<li>Attributes are prefixed with a &#8216;:&#8217;. See above&#8230;</li>
<li>Why would I want to name a method that converts the state of an object into a string <code>to_s</code> instead of <code>toString</code>? What do I gain?</li>
<li>I&#8217;m not yet sure whether I like the implicit &#8220;getter/setter&#8221; methods for attributs. Ok, I have to write or generate (as modern IDEs do) less code, but the expressiveness of my code suffers from that.</li>
<li>On the other hand it&#8217;s nice to have virtual attributes. The <a href="http://en.wikipedia.org/wiki/Uniform_access_principle"><em>Uniformed Access Principle</em></a> as put forth by Bertrand Meyer has made it into Ruby.</li>
</ul>
<p>To be continued&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frightanic.com/2007/04/07/learning-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
