<?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>4thmouse.com &#187; Ruby</title>
	<atom:link href="http://4thmouse.com/index.php/category/programming/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://4thmouse.com</link>
	<description>Software Engineering.</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:38:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SWIG, Java, and JRuby</title>
		<link>http://4thmouse.com/index.php/2010/07/22/swig-java-and-jruby/</link>
		<comments>http://4thmouse.com/index.php/2010/07/22/swig-java-and-jruby/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 12:30:47 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://4thmouse.com/?p=364</guid>
		<description><![CDATA[Providing a robust, maintainable, and interactive interface to your C/C++ application can be a challenge, but I&#8217;ve found that a combination of SWIG, Java, and JRuby (or Jython if you prefer) makes for a very powerful combination.

NOTE: All code is available here.
All languages have their trade offs: C/C++ is speedy, but hard to maintain and [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2010/07/22/swig-java-and-jruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Better Binary File Generator DSL in Ruby</title>
		<link>http://4thmouse.com/index.php/2008/09/13/a-better-binary-file-generator-dsl-in-ruby/</link>
		<comments>http://4thmouse.com/index.php/2008/09/13/a-better-binary-file-generator-dsl-in-ruby/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 03:14:17 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[binary file]]></category>
		<category><![CDATA[domain specific language]]></category>
		<category><![CDATA[DSL]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/09/13/a-better-binary-file-generator-dsl-in-ruby/</guid>
		<description><![CDATA[In Creating a Binary File Using a Ruby DSL I did a very small example of using a ruby DSL to generate complex binary files without having to use C or a hexeditor. I&#8217;ve beefed it up significantly since then so here is the updated version of h2b.irb.

Now I can write something like this:

#write ascii [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/09/13/a-better-binary-file-generator-dsl-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XPath From the Command Line Using Ruby</title>
		<link>http://4thmouse.com/index.php/2008/09/13/xpath-from-the-command-line-using-ruby/</link>
		<comments>http://4thmouse.com/index.php/2008/09/13/xpath-from-the-command-line-using-ruby/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 02:31:23 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XPath]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[libxml]]></category>
		<category><![CDATA[libxml2]]></category>
		<category><![CDATA[rexml]]></category>
		<category><![CDATA[search xml]]></category>
		<category><![CDATA[xalan]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/09/13/xpath-from-the-command-line-using-ruby/</guid>
		<description><![CDATA[There are other ways of doing this, but I thought it would be fun to write a command-line xpath script in ruby using rexml. (full working example here)

Parsing the Command Line Arguments
The first step is to set up the command line options. I want to have two arguments:

 a file argument for specifying the XML [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/09/13/xpath-from-the-command-line-using-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Binary File Using a Ruby DSL</title>
		<link>http://4thmouse.com/index.php/2008/03/25/creating-a-binary-file-using-a-ruby-dsl/</link>
		<comments>http://4thmouse.com/index.php/2008/03/25/creating-a-binary-file-using-a-ruby-dsl/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 20:01:42 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[domain specific language]]></category>
		<category><![CDATA[DSN]]></category>
		<category><![CDATA[Hex]]></category>
		<category><![CDATA[Hex to Binary]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/03/25/creating-a-binary-file-using-a-ruby-dsl/</guid>
		<description><![CDATA[So I used ruby to convert a simple hex string into a binary file in Converting hex to Binary in 4 Languages. Today I was trying to create a mixed ascii/binary file at work and created a little Domain Specific Language that has good possibilities.
NOTE: There is an expanded version of this script here: A [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/03/25/creating-a-binary-file-using-a-ruby-dsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why C Switch Statements Should go the way of the GOTO</title>
		<link>http://4thmouse.com/index.php/2008/03/15/why-c-switch-statements-should-go-the-way-of-the-goto/</link>
		<comments>http://4thmouse.com/index.php/2008/03/15/why-c-switch-statements-should-go-the-way-of-the-goto/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:07:22 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[fall through]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/03/15/why-c-switch-statements-should-go-the-way-of-the-goto/</guid>
		<description><![CDATA[The venerable C switch statement keeps showing up in other languages presumably because the people who write new languages are familiar with C and don&#8217;t really think about it.

What is it
So the C-style switch statement is an efficient way of executing code based on an index. For efficiency reasons the index has to be an [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/03/15/why-c-switch-statements-should-go-the-way-of-the-goto/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ruby Shell as Domain Specific Language</title>
		<link>http://4thmouse.com/index.php/2008/02/27/ruby-shell-as-domain-specific-language/</link>
		<comments>http://4thmouse.com/index.php/2008/02/27/ruby-shell-as-domain-specific-language/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 03:57:17 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[domain specific language]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/02/27/ruby-shell-as-domain-specific-language/</guid>
		<description><![CDATA[My favorite example of a DSL is the latest jmock API just because you really have to fight the language. Fortunately Ruby makes things easier. I&#8217;ve been thinking a shell in ruby might be a nice change of pace so this is a small example of how to go about implementing one.

The Language
So basically I&#8217;d [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/02/27/ruby-shell-as-domain-specific-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netcat Clone in Three Languages &#8211; Part I (Ruby)</title>
		<link>http://4thmouse.com/index.php/2008/02/20/netcat-clone-in-three-languages-part-i-ruby/</link>
		<comments>http://4thmouse.com/index.php/2008/02/20/netcat-clone-in-three-languages-part-i-ruby/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 01:59:29 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/02/20/netcat-clone-in-three-languages-part-i-ruby/</guid>
		<description><![CDATA[I thought I&#8217;d continue my series of writing the same application in multiple languages by trying to clone the wonderful network tool: netcat. For the first installation I&#8217;m going to try it in Ruby.

NOTE: apparently not everyone is having great success. I have tried this out under cygwin and redhat enterprise linux 5, but if [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/02/20/netcat-clone-in-three-languages-part-i-ruby/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Converting hex to Binary in 4 Languages</title>
		<link>http://4thmouse.com/index.php/2008/02/18/converting-hex-to-binary-in-4-languages/</link>
		<comments>http://4thmouse.com/index.php/2008/02/18/converting-hex-to-binary-in-4-languages/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 22:01:59 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://4thmouse.com/index.php/2008/02/18/converting-hex-to-binary-in-4-languages/</guid>
		<description><![CDATA[I&#8217;ve been playing around with some scripting languages recently so I thought I&#8217;d do a small example in a few different languages for laughs.

The Program
So basically I wanted to write a script that takes a string of hexadecimal as input and outputs a stream of binary data:

cat 00 01 02 03 04 &#124; ./myscript > [...]]]></description>
		<wfw:commentRss>http://4thmouse.com/index.php/2008/02/18/converting-hex-to-binary-in-4-languages/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
