<?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>Aliso the Geek&#187; Ruby</title>
	<atom:link href="http://alisothegeek.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://alisothegeek.com</link>
	<description>A coder in love with WordPress</description>
	<lastBuildDate>Thu, 12 Aug 2010 03:47:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A Newbie&#039;s First Impression of Ruby</title>
		<link>http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/</link>
		<comments>http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/#comments</comments>
		<pubDate>Sun, 31 May 2009 19:59:45 +0000</pubDate>
		<dc:creator>abarrett</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://alisothegeek.com/?p=21</guid>
		<description><![CDATA[I just realized that this post title rhymes. Sorry about that. I am reading Beginning Ruby: From Novice to Professional by Peter Cooper to introduce me to the language. It definitely lives up to its title! So far, I&#8217;m coming &#8230; <a href="http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just realized that this post title rhymes. Sorry about that.</p>
<p>I am reading <em>Beginning Ruby: From Novice to Professional</em> by Peter Cooper to introduce me to the language. It definitely lives up to its title! So far, I&#8217;m coming out of each chapter with an actual understanding of what I just read&#8230; even if I have to read it more than once.</p>
<p>The best part is seeing the vast amount of code that is <em>absent</em> in the language. When I was learning Java and Actionscript 3, the syntax for classes, methods, and instances was so daunting. You need to write so much just to set up one instance of a class. In Ruby, this Actionscript:</p>
<p>[as3]public class Person {<br />
  public var firstname:String = new String();<br />
  public var lastname:String = new String();<br />
}</p>
<p>var aliso:Person = new Person();[/as3]</p>
<p>becomes this:<br />
[ruby]def Person<br />
  attr_accessor :firstname, :lastname<br />
end</p>
<p>aliso = Person.new[/ruby]</p>
<p>It&#8217;s much less code. It makes so much more sense to write it this way! A core principle in Ruby is <strong>DRY</strong>, or Don&#8217;t Repeat Yourself. It&#8217;s wonderful. It makes me think, &#8220;Is Actionscript 3 so stupid that it needs to know <code>aliso</code> is a variable and a Person before I instantiate it as a new Person variable?&#8221;</p>
<p>I was able to build an application (worked through in the book, of course) that took the text from any specified text file and analyzed it—counting words, sentences, paragraphs, the amount of &#8220;useful&#8221; sentences, and even writing a summary using that information. I built it in one Ruby file, with just a couple dozen lines of code. It was fantastic!</p>
<p>That&#8217;s it for now. My first impression of Ruby is most definitely a great one.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby+-+http://b2l.me/agrqhb&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;t=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;title=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;title=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;title=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;title=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/&amp;title=A+Newbie%26%23039%3Bs+First+Impression+of+Ruby&amp;summary=I%20just%20realized%20that%20this%20post%20title%20rhymes.%20Sorry%20about%20that.%0A%0AI%20am%20reading%20Beginning%20Ruby%3A%20From%20Novice%20to%20Professional%20by%20Peter%20Cooper%20to%20introduce%20me%20to%20the%20language.%20It%20definitely%20lives%20up%20to%20its%20title%21%20So%20far%2C%20I%27m%20coming%20out%20of%20each%20chapter%20with%20an%20actual%20understanding%20of%20what%20I%20just%20read...%20ev&amp;source=Aliso the Geek" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://alisothegeek.com/2009/05/a-newbies-first-impression-of-ruby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
