<?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>mindful iterations: Unit Testing: Perl &amp; Ruby on Rails</title>
    <link>http://www.mindfuliterations.com/articles/2007/11/01/unit-testing%3A-perl-%26-ruby-on-rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>I'm just a girl, standing in front of some code, asking it to compile.</description>
    <item>
      <title>Unit Testing: Perl &amp;amp; Ruby on Rails</title>
      <description>&lt;p&gt;Going back to my last post &amp;#8211; I finally settled on using Test::Unit.  I already had my code written, but my test code 
ended up being twice, yes, twice as long as my actual code.&lt;/p&gt;


	&lt;p&gt;I got a lot of help with logic from reading parts of Intermediate Perl.  After looking back over the last few months of the journey that has been learning perl, I&amp;#8217;ve realized that some &amp;#8216;grokking&amp;#8217; really comes with experience and doing.  After coding for a couple of months, I can happily say that the book makes a lot more sense to me now than it did back in September.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;h2&gt;Switching Gears&lt;/h2&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Currently, I&amp;#8217;m focusing on Ruby on Rails.  With that endeavor, I&amp;#8217;m also looking at the concepts that go along with writing test code &lt;em&gt;before and during&lt;/em&gt; the coding process.  Whether it&amp;#8217;s &lt;span class="caps"&gt;TDD&lt;/span&gt; (Test Driven Development) or not, I&amp;#8217;m not quite sure, however, after my first experience with testing taking place &lt;em&gt;after&lt;/em&gt; I had written the code, it&amp;#8217;s definitely an adjustment to attempt writing tests &lt;em&gt;before&lt;/em&gt; writing code.  That and the syntax, while similar, is a bit different, so I need to get my head wrapped around that.&lt;/p&gt;


	&lt;p&gt;Luckily I&amp;#8217;m quite familiar with pure Ruby and Rails.  Perl was a completely new animal aside from editing a couple of pre-made scripts throughout the year.&lt;/p&gt;


	&lt;p&gt;So, at this point in time, I&amp;#8217;m focused on the following:&lt;/p&gt;


&lt;ol&gt;
&lt;li&gt;learning about writing unit tests before writing code.&lt;/li&gt;
&lt;li&gt;getting a greater understanding of the testing syntax in ruby.&lt;/li&gt;
&lt;li&gt;something not mentioned in the prior paragraph(s) &amp;#8211; learning how much validation I need to put in my rails models.&lt;/li&gt;
&lt;/ol&gt;

	&lt;p&gt;Oh, and one more thing before I catch up on some reading &amp;#8211;   I watched a screencast put out by &lt;a href="http://www.railsenvy.com/"&gt;RailsEnvy&lt;/a&gt;.  The screencast was a &lt;a href="http://www.railsenvy.com/2007/8/8/activerecord-tutorial"&gt;tutorial on Active Record/ActiveRecord&lt;/a&gt;.  It helped immensely.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:02:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:caa949c1-3fe1-412e-b301-0dcf42f8e5c6</guid>
      <author>samantha</author>
      <link>http://www.mindfuliterations.com/articles/2007/11/01/unit-testing%3A-perl-%26-ruby-on-rails</link>
      <category>geek</category>
      <category>programming</category>
      <category>ruby</category>
      <category>testing</category>
      <trackback:ping>http://www.mindfuliterations.com/articles/trackback/129</trackback:ping>
    </item>
  </channel>
</rss>
