require "lib/twog" require 'rss' module TwogSpecHelper def test_conf @conf = {'rss_feed' => 'rss feed', 'bitly_username' => 'username', 'bitly_api_key' => 'api key', 'consumer_key' => 'consumerkey', 'consumer_secret' => 'consumersecret', 'access_token' => 'accesstoken', 'access_secret' => 'accesssecret', 'last_blog_post_tweeted' => '31 Mar 2010 07:52:17 -0600'} end def rss_feed_entry entry=<<-EOS Pair Programming 2009-01-29T00:00:00-08:00 http://blog.jasonmeridth.com/2009/01/29/pair-programming <h1>Pair Programming</h1> <p class="meta">29 Jan 2009 &#8211; San Antonio</p> <p>I recently found this post, <a href="http://blog.jayfields.com/2008/02/pair-programming-all-time.html">Pair Programming all the time</a>, by <a href="http://blog.jayfields.com/">Jay Fields</a> and loved it. I&#8217;ve felt the same way about pair programming.</p> <blockquote> <p>&#8220;I define all the time (in terms of pairing) as when I&#8217;m writing code that I&#8217;m going to commit.&#8221;</p> </blockquote> <p>That is perfect. Common sense but stated explicitly. I worked in an Agile shop for 2 1/2 years and the environment was setup to highlight pair programming. Pictures and little explanation <a href="http://www.lostechies.com/blogs/joe_ocampo/archive/2007/12/09/where-the-magic-happens-our-dev-lap.aspx">here</a> (Thanks Joe). We even marked tasks in the stories as low (L) or high (H) to dictate whether a pair was necessary (this was decided during our modeling week by the two developers who tasked the story, but always up for discussion during the iteration). It worked out pretty well.</p> <p>I understand and have heard all the reasons to not pair program. Sometimes it works and sometimes it doesn&#8217;t. I&#8217;ve personally experienced the benefits. You learn to work with different personalities and that can only benefit you in your professional career. And, the obvious reason, is immediate code review. But, as my friend Scott C. Reynolds <a href="http://www.lostechies.com/blogs/scottcreynolds/archive/2009/01/23/on-teaching-learning-and-being-honest-with-ourselves.aspx">says</a> (more or less):</p> <blockquote> <p>&#8220;Not everyone is cut from the same cloth&#8221;</p> </blockquote> <p>That is true and that is life. I hope this helps someone understand that not all pair programming enthusiasts are zealots. I know it&#8217;s a fine line though.</p> EOS return entry end def rss_entry rss = RSS::Parser.parse(rss_feed_url_content) rss.items[0] end def rss_feed_url_content post=<<-EOS Jason Meridth 2010-04-04T13:15:31-07:00 http://blog.jasonmeridth.com/ Jason Meridth jmeridth@gmail.com EOS return "#{post}#{rss_feed_entry}" end end