<?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"
	>

<channel>
	<title>nopaper.net &#187; Ruby</title>
	<atom:link href="http://www.nopaper.net/category/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nopaper.net</link>
	<description>home of Ryan Stephenson</description>
	<pubDate>Tue, 19 Aug 2008 22:35:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Play with Ruby</title>
		<link>http://www.nopaper.net/2006/10/09/play-with-ruby.html</link>
		<comments>http://www.nopaper.net/2006/10/09/play-with-ruby.html#comments</comments>
		<pubDate>Mon, 09 Oct 2006 18:43:57 +0000</pubDate>
		<dc:creator>Ryan Stephenson</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://nopaper.net/2006/10/09/play-with-ruby.html</guid>
		<description><![CDATA[I need to &#8220;play&#8221; with a programming language before I find myself really comfortable with it.  Playing doesn&#8217;t just mean solving some problems or writing an app, but instead simply experimenting with the available functionality &#8212; exploring instead of producing.
TextMate has served me well for this, as I can write some code and immediately [...]]]></description>
			<content:encoded><![CDATA[<p>I need to &#8220;play&#8221; with a programming language before I find myself really comfortable with it.  Playing doesn&#8217;t just mean solving some problems or writing an app, but instead simply experimenting with the available functionality &#8212; <em>exploring</em> instead of <em>producing</em>.</p>
<p><a href="http://macromates.com/">TextMate</a> has served me well for this, as I can write some code and immediately run it with <code>Command-R</code>, or even selectively run lines of specific code.  This is all useful, but knowing the code available to even write requires already knowing the language, or some extensive back-and-forth with reference documents.  </p>
<p>Unfortunately, I don&#8217;t memorize things quickly (especially programming reference material), so I&#8217;ve often leaned on code-completion with other languages to browse available methods and properties.  It&#8217;s a crutch in many ways, but is perfect for exploring the abilities of code in it&#8217;s context, and after a few similar tasks the reference is no longer needed.  Unfortunately, there&#8217;s no auto-complete in TextMate.</p>
<p>Fortunately, another way to play with Ruby is with IRB, the interactive Ruby shell.  I find it helpful to often keep a terminal window open with IRB to construct something and experiment with it before implementing it in a function.  IRB by default has no code-completion, but the support is there.  <a href="http://roninx341.wordpress.com/">Eric Lake</a> demonstrates <a href="http://showmedo.com/videos/video?name=rubyLakeIrbCompletion">adding tab completion to Ruby&#8217;s IRB</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nopaper.net/2006/10/09/play-with-ruby.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
