<?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>Dan Appleyard &#187; Ruby</title>
	<atom:link href="http://www.danappleyard.com/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danappleyard.com</link>
	<description>Developer&#039;s Thoughts on Tech, Life, &#38; Stuff</description>
	<lastBuildDate>Thu, 21 Jul 2011 21:43:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Microsoft&#8217;s NuPack &#8211; .Net&#8217;s Gem Manager?</title>
		<link>http://www.danappleyard.com/2010/10/06/microsofts-nupack-nets-gem-manager/</link>
		<comments>http://www.danappleyard.com/2010/10/06/microsofts-nupack-nets-gem-manager/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 15:45:25 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=460</guid>
		<description><![CDATA[Today Microsoft announced the betas of several new projects &#8211; ASP.NET MVC 3 Beta 1, WebMatrix Beta 2, and NuPack. NuPack is a free open source package manager that makes it easy for you to find, install, and use .NET libraries in your projects. Once installed, you can open a new &#8220;&#8221; within Visual Studio [...]]]></description>
			<content:encoded><![CDATA[<p>Today <a href="http://weblogs.asp.net/scottgu/archive/2010/10/06/announcing-nupack-asp-net-mvc-3-beta-and-webmatrix-beta-2.aspx">Microsoft announced the betas of several new projects</a> &#8211; ASP.NET MVC 3 Beta 1, WebMatrix Beta 2, and NuPack.  NuPack is a free open source package manager that makes it easy for you to find, install, and use .NET libraries in your projects. Once installed, you can open a new &#8220;&#8221; within Visual Studio and enter the line &#8220;Add-Package [name of library]&#8220;.  NuPack will search online, download, add a reference to the library to your project, and setup the project&#8217;s configuration file.</p>
<blockquote><p>Isn&#8217;t that doing the same thing as Ruby&#8217;s Gem Manager?</p></blockquote>
<p>Basically it is.  But so what?  Some people say that Microsoft has been trying to play catch-up with Ruby / Rails for the last year or so.  Once again, I say &#8220;So What?&#8221;.  Don&#8217;t we as developers want improvements in our languages/platforms?  These are just my initial thoughts about this interesting new project.  Once I have played around with NuPack, I am sure I will much more to say.  Until then, here are some links for your reading pleasure.</p>
<ul>
<li><a href="http://haacked.com/archive/2010/10/06/introducing-nupack-package-manager.aspx">Phil Haack introducing NuPack</a></li>
<li> <a href="http://weblogs.asp.net/scottgu/archive/2010/10/06/announcing-nupack-asp-net-mvc-3-beta-and-webmatrix-beta-2.aspx">Scott Guthrie announcing the new projects</a></li>
<li><a href="http://haacked.com/archive/2010/10/06/asp-net-mvc-3-beta-released.aspx">Phil Haack talking about Mvc 3 Beta</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/10/06/microsofts-nupack-nets-gem-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dazed and confused with cucumbers</title>
		<link>http://www.danappleyard.com/2010/06/06/dazed-and-confused-with-cucumbers/</link>
		<comments>http://www.danappleyard.com/2010/06/06/dazed-and-confused-with-cucumbers/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 06:53:34 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=210</guid>
		<description><![CDATA[This week, I have decided to learn Ruby as a new programming language.  I decided that since I am mainly a web developer, I should set up Ruby on Rails and go that route.  For those that do not know, Ruby is the general language, and Rails is the web framework for Ruby.  I found [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danappleyard.files.wordpress.com/2010/06/dazed-and-confused.jpg"><img class="aligncenter size-medium wp-image-214" title="dazed-and-confused" src="http://danappleyard.files.wordpress.com/2010/06/dazed-and-confused.jpg?w=300" alt="" width="300" height="168" /></a><br />
This week, I have decided to learn Ruby as a new programming language.  I decided that since I am mainly a web developer, I should set up Ruby on Rails and go that route.  For those that do not know, Ruby is the general language, and Rails is the web framework for Ruby.  I found the install of both Ruby and Rails very straightforward and simple.  Once I had both installed on my machine, I decided to checkout what <a href="http://www.tekpub.com">Tekpub</a> had in terms of learning Ruby on Rails. Tekpub is a website aimed at developers with video tutorials on various technologies (Ruby on Rails, ASP.NET MVC, jQuery, etc.).  I started watching the first of a series showing Ruby on Rails.  I was following the instructor (Rob Conery), and when he got to the section of installing a testing gem (kind of like a package in Java, or assembly in .Net) called <a href="http://cukes.info/">Cucumber</a>, I got messed up.  It was working for him, but not me!  I was like &#8220;What the frak!&#8221;  Well it turns out all the way in the last video in the series, he goes and says that people have mentioned that the steps in the first video (the one I was at) did not work for them.  He then goes and shows what he should have done, and yada yada yada.  Well, in the end I got Cucumber to install correctly on my machine.</p>
<p>Once I got it installed correctly, I started playing a bit with Cucumber.  It seems very interesting.  Cucumber follows the concept of Behavior Driven Development.  As it says in its website: &#8220;Cucumber lets software development teams describe how software should behave in plain text.  The text is written in a business-readable domain-specific language and serves as documentation, automated tests, and development-aid &#8211; all rolled into one format&#8221;.  I haven&#8217;t gotten too far into it, but once I do, I am sure I will share more about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/06/06/dazed-and-confused-with-cucumbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The chosen language is Ruby</title>
		<link>http://www.danappleyard.com/2010/06/04/the-chosen-language-is-ruby/</link>
		<comments>http://www.danappleyard.com/2010/06/04/the-chosen-language-is-ruby/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 15:19:00 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=198</guid>
		<description><![CDATA[It has been awhile since I wrote about my examination of what language to learn first after using .Net for years. I narrowed it to PHP, Perl, Python, Ruby, and Java. So far, I had gone over all but Java. The reason I did not do Java is because I felt that the examination code [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ruby-lang.org/en/"><img class="alignnone" title="The Ruby Programming Language" src="http://www.ruby-lang.org/images/logo.gif" alt="The Ruby Programming Language" width="331" height="119" /></a><br />
It has been awhile since I wrote about my examination of what language to learn first after using .Net for years.  I narrowed it to <a href="http://www.danappleyard.com/2010/05/19/a-look-at-php/">PHP</a>, <a href="http://www.danappleyard.com/2010/05/17/a-look-at-perl/">Perl</a>, <a href="http://www.danappleyard.com/2010/05/18/a-look-at-python/">Python</a>, <a href="http://www.danappleyard.com/2010/05/22/a-belated-look-at-ruby/">Ruby</a>, and Java.  So far, I had gone over all but Java.  The reason I did not do Java is because I felt that the examination code I would have written in Java was basically C#.  That would not have really brought anything new to light for me.  That is not really attractive to me for a new language.  I was now left with PHP, Perl, Python, and Ruby.  I found that Perl was very cryptic in its syntax, PHP was just for web, and that Python and Ruby are very similar.  I had Python and Ruby in the top two.  Researching what people thought about the two languages, I found that Ruby had the advantage.  Since I take what the development community thinks seriously, I have chosen to learn Ruby.  I will probably try to learn Rails as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/06/04/the-chosen-language-is-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A belated look at Ruby</title>
		<link>http://www.danappleyard.com/2010/05/22/a-belated-look-at-ruby/</link>
		<comments>http://www.danappleyard.com/2010/05/22/a-belated-look-at-ruby/#comments</comments>
		<pubDate>Sun, 23 May 2010 04:32:45 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=159</guid>
		<description><![CDATA[Last Sunday I went over a list of possible programming languages to learn. It ended with me decided to learn all of them, but unsure as to what to learn first. I decided to go over each of them and figure out what I thought about them. How would I do this? What I have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danappleyard.com/2010/05/16/learn-a-new-programming-language/">Last Sunday I went over a list of possible programming languages to learn</a>.  It ended with me decided to learn all of them, but unsure as to what to learn first.  I decided to go over each of them and figure out what I thought about them.  How would I do this?  What I have decided to do is see how complex it is to do the same thing in each language.  What better to test out a language than to create a class?  <a href="http://www.danappleyard.com/2010/05/17/a-look-at-php/">Wednesday, I went over the PHP implementation</a>.  Today is Ruby&#8217;s turn.</p>
<h2>Ruby Class</h2>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> Person
&nbsp;
	<span style="color:#9966CC; font-weight:bold;">def</span> initialze<span style="color:#006600; font-weight:bold;">&#40;</span>firstName, lastName, age<span style="color:#006600; font-weight:bold;">&#41;</span>
		<span style="color:#0066ff; font-weight:bold;">@firstName</span> = firstName
		<span style="color:#0066ff; font-weight:bold;">@lastName</span> = lastName
		<span style="color:#0066ff; font-weight:bold;">@age</span> = age
	<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
	<span style="color:#9966CC; font-weight:bold;">def</span> IntroduceYourself
	    response = <span style="color:#996600;">&quot;Hello, my name is &quot;</span> <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#0066ff; font-weight:bold;">@firstName</span> <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#996600;">&quot; &quot;</span> <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#0066ff; font-weight:bold;">@lastName</span>
            response = response <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#996600;">&quot;, and I am &quot;</span> <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#0066ff; font-weight:bold;">@age</span> <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#996600;">&quot; year(s) old.&quot;</span>
            <span style="color:#0000FF; font-weight:bold;">return</span> response
	<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<h2>Ruby Implementation</h2>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">dan = Person.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Dan&quot;</span>, <span style="color:#996600;">&quot;Appleyard&quot;</span>, <span style="color:#006666;">27</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> dan.<span style="color:#9900CC;">IntroduceYourself</span></pre></div></div>

<h2>My Thoughts</h2>
<p>Rubys seems similar to Python.  Since I liked Python, I like Ruby.  At this point in my limited knowledge of these languages, I don&#8217;t really see the differences between Ruby and Python.  My final examination will be that of Java.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/05/22/a-belated-look-at-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No look at Ruby today</title>
		<link>http://www.danappleyard.com/2010/05/20/no-look-at-ruby-today/</link>
		<comments>http://www.danappleyard.com/2010/05/20/no-look-at-ruby-today/#comments</comments>
		<pubDate>Fri, 21 May 2010 03:27:26 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=154</guid>
		<description><![CDATA[I have been too busy today to mess around with Ruby. Will try tomorrow.]]></description>
			<content:encoded><![CDATA[<p>I have been too busy today to mess around with Ruby.  Will try tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/05/20/no-look-at-ruby-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn a new programming language</title>
		<link>http://www.danappleyard.com/2010/05/16/learn-a-new-programming-language/</link>
		<comments>http://www.danappleyard.com/2010/05/16/learn-a-new-programming-language/#comments</comments>
		<pubDate>Sun, 16 May 2010 21:18:23 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=10</guid>
		<description><![CDATA[I want to broaden my development skills.  I am too focused on .Net technologies.  There are so many other options out there &#8211; Ruby, PHP, Java, Perl, Python, etc.  That being said, I have recently decided to learning a new programming language.  Currently, I know VB.NET, C#, and JavaScript &#8211; pathetic I know.  Of those options [...]]]></description>
			<content:encoded><![CDATA[<p>I want to broaden my development skills.  I am too focused on .Net technologies.  There are so many other options out there &#8211; Ruby, PHP, Java, Perl, Python, etc.  That being said, I have recently decided to learning a new programming language.  Currently, I know VB.NET, C#, and JavaScript &#8211; pathetic I know.  Of those options out there, which one should I learn?  According to <a title="10 programming languages you should learn right now" href="http://www.eweek.com/c/a/IT-Management/10-Programming-Languages-You-Should-Learn-Right-Now/" target="_blank">eWeek.com</a>, I should learn them all.  The funny thing is, I wrote that orginal list of languages before I even found this article.   While the article has been around coming on four years now, I think it is still a valid list (even though I personally disagree the distinction between AJAX and JavaScript as two separate languages). </p>
<p>Now the original question has changed from &#8220;what language should I learn&#8221; to &#8220;what language should I learn first&#8221;.  Some would say that since I know C# Java would have the easiest learning curve.  I don&#8217;t know quite yet.  What are the pros and cons of each language?  Each day this week I will talk about one language and go over the pros and cons of learning it.  These will be MY pros and cons &#8211; not the standard pros and cons of each language. </p>
<p>Tomorrow &#8211; Perl!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/05/16/learn-a-new-programming-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

