<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Crazy Or Genius?: Tag rake</title>
    <link>http://www.crazyorgenius.com/articles/tag/rake?tag=rake</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>When You Are Right 90% Of The Time, Why Quible Over The Remaining 3%?</description>
    <item>
      <title>Sneaking Ruby Into The System</title>
      <description>&lt;p&gt;Many of you may know of my love for the Ruby language. Used for most of my own projects and quick scripts, but have never been able to use it in any of my paid work. Until now.&lt;/p&gt;


	&lt;p&gt;It started a few weeks ago with a script I wanted to write. As I am the &amp;#8216;translator guy&amp;#8217; at work, from time to time I need to convert the &lt;span class="caps"&gt;XML&lt;/span&gt; files that store the English text to something that a non-technical translator can easily read (I thought the &lt;span class="caps"&gt;XML&lt;/span&gt; was readable, but apparently I need to hand over Excel spreadsheets). As Ruby has nice &lt;span class="caps"&gt;XML&lt;/span&gt; library included, I just quickly whipped something up, and away I went. Never intending this to be anything more than a tool for myself and knowing my boss wouldn&amp;#8217;t care as long as it got done without me having to spend a few hours, it seemed like the thing to do at the time.&lt;/p&gt;


	&lt;p&gt;Fast forward another two weeks. I overheard a few of my coworkers talking about how they can&amp;#8217;t manipulate &lt;span class="caps"&gt;XML&lt;/span&gt; files in &lt;a href="http://www.autoitscript.com/autoit3/"&gt;Auto-it&lt;/a&gt;, which they were using to cover some deficiencies in another build tool we were using called FinalBuilder. They started talking about either writing their own &lt;span class="caps"&gt;XML&lt;/span&gt; parser, or using yet another tool/language to do what they wanted.&lt;/p&gt;&lt;p&gt;A few of my coworks obviously didn&amp;#8217;t like either idea. I mean, sure it was &lt;strong&gt;a solution&lt;/strong&gt;, but it wasn&amp;#8217;t an &lt;strong&gt;ideal&lt;/strong&gt; solution. None of us liked the thought of debugging build/test/release scripts cobbled together from 3 different programs/languages. Some of us thought that if we were going to take the time to do something like write our own &lt;span class="caps"&gt;XML&lt;/span&gt; parser, we might as well spend the time to do something even smarter, like rewrite all our scripts in a single language. This would have several advantages, including things being uniform (1 language vs 3 helps there) and making it easy to track changes in svn (FinalBuilder has binary files, which caused problems when multiple people made enhancements).&lt;/p&gt;


	&lt;p&gt;So a number of suggestions were made, including batch files (ugh) and php. I obviously suggested Ruby, pointing out its portability (as opposed to Windows only solutions), readability, and the existence of desired functionality (eg. &lt;span class="caps"&gt;XML&lt;/span&gt; Parsing). The individual who was going to write the scripts had never used Ruby before, and so wanted to know more before making a decision.  Coincidentally, I had a copy of Enterprise Integration With Ruby sitting on my desk,and was able to toss it over so he could take a look at the syntax (bonus points for its section on &lt;span class="caps"&gt;XML&lt;/span&gt; parsing). I also pointed out the &lt;a href="www.ruby-doc.org"&gt;ruby-doc&lt;/a&gt; site and pointed out &lt;a href="http://docs.rubyrake.org/"&gt;rake&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Now, we have all of our build scripts written in rake format, and I reworked my translation scripts slightly to be rake tasks as well. At the moment we are working out some kinks in another series of scripts a coworker has written for creating packages for our clients, and we won&amp;#8217;t have to waste time making small tweaks to packages manually.&lt;/p&gt;</description>
      <pubDate>Tue, 05 Sep 2006 15:47:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:e2a9a533-2857-4d7e-a341-8a8b056ac26a</guid>
      <author>Sean</author>
      <link>http://www.crazyorgenius.com/articles/2006/09/05/sneaking-ruby-into-the-system</link>
      <category>Programming</category>
      <category>ruby</category>
      <category>rake</category>
      <trackback:ping>http://www.crazyorgenius.com/articles/trackback/176</trackback:ping>
    </item>
  </channel>
</rss>
