<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Rails, Ruby, Facebook and tests &#8212; my own itch scratched</title>
	<atom:link href="http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/feed/" rel="self" type="application/rss+xml" />
	<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/</link>
	<description>Old dogs, new tricks</description>
	<lastBuildDate>Sun, 30 Aug 2009 07:39:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: A RubyonRails library for the ebay shopping API &#171; Pushrod</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-57</link>
		<dc:creator>A RubyonRails library for the ebay shopping API &#171; Pushrod</dc:creator>
		<pubDate>Sun, 13 Jan 2008 17:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-57</guid>
		<description>[...] there&#8217;s no Ruby or Rails library for the Shopping API. So, time to scratch my own itch again. Enter ebay-shopping, a RubyonRails plugin for the ebay Shopping API. It&#8217;s a pretty [...]</description>
		<content:encoded><![CDATA[<p>[...] there&#8217;s no Ruby or Rails library for the Shopping API. So, time to scratch my own itch again. Enter ebay-shopping, a RubyonRails plugin for the ebay Shopping API. It&#8217;s a pretty [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt P</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-11</link>
		<dc:creator>Matt P</dc:creator>
		<pubDate>Tue, 28 Aug 2007 03:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-11</guid>
		<description>Ryan - I agree with your sentiment, unit testing should have come first.  RFacebook was originally a written when I was new to Ruby and Rails, so I hadn&#039;t been &quot;enlightened&quot; so to speak.

However, the friendly competition has definitely driven RFacebook to finally get its sorely-missing unit tests:

http://www.livelearncode.com/archives/26

Please feel free to check out the new plugin, and see what you think.  I hope it puts RFacebook in better standing with the Rails community, and perhaps scratches that itch for other developers.</description>
		<content:encoded><![CDATA[<p>Ryan &#8211; I agree with your sentiment, unit testing should have come first.  RFacebook was originally a written when I was new to Ruby and Rails, so I hadn&#8217;t been &#8220;enlightened&#8221; so to speak.</p>
<p>However, the friendly competition has definitely driven RFacebook to finally get its sorely-missing unit tests:</p>
<p><a href="http://www.livelearncode.com/archives/26" rel="nofollow">http://www.livelearncode.com/archives/26</a></p>
<p>Please feel free to check out the new plugin, and see what you think.  I hope it puts RFacebook in better standing with the Rails community, and perhaps scratches that itch for other developers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Lowe</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-8</link>
		<dc:creator>Ryan Lowe</dc:creator>
		<pubDate>Tue, 21 Aug 2007 21:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-8</guid>
		<description>Matt P said: &quot;The last major missing piece is, as you correctly observed, the lack of unit tests.&quot;

Interesting, I&#039;d consider unit tests to be the *first* major missing piece.  I agree with Chris&#039; approach here and that RFacebook has significant weaknesses.

The ideal Ruby/Rails/Facebook solution still isn&#039;t out there, so I don&#039;t see a problem with a little friendly &quot;competition&quot; based on two different approaches.  It will help the whole Ruby community.

Keep on truckin&#039; test-first, Chris.</description>
		<content:encoded><![CDATA[<p>Matt P said: &#8220;The last major missing piece is, as you correctly observed, the lack of unit tests.&#8221;</p>
<p>Interesting, I&#8217;d consider unit tests to be the *first* major missing piece.  I agree with Chris&#8217; approach here and that RFacebook has significant weaknesses.</p>
<p>The ideal Ruby/Rails/Facebook solution still isn&#8217;t out there, so I don&#8217;t see a problem with a little friendly &#8220;competition&#8221; based on two different approaches.  It will help the whole Ruby community.</p>
<p>Keep on truckin&#8217; test-first, Chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: autopendium</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-7</link>
		<dc:creator>autopendium</dc:creator>
		<pubDate>Tue, 21 Aug 2007 20:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-7</guid>
		<description>Yeah, the canvas stuff is tricky (my app is actually a canvas app), and developing for it doubly so (unless you use a SSH connection). I&#039;m a bit averse to overwriting the standard url_for methods (hence the fb_redirect_to method), and overwriting the session starts getting tricky when your dealing with a decent-sized existing app.

One of the issues for me was the fact that I needed to add Facebook functionality to an existing app, with an existing userbase (many of whom wouldn&#039;t want to use Facebook). For that, a lightweight solution seemed more appropriate than one that allow for desktop usage, console etc. Especially as the code I&#039;ve got is now (wasn&#039;t to begin with though!) fairly well covered with tests ;-)

It actually surprised me how straightforward the library was to write, once I sat down to spec it out with tests -- but then that&#039;s the beauty of Ruby. In writing the app (now done, currently being tested), I&#039;ve had to add virtually nothing more to it.

Anyway, good luck with RFacebook, and good luck with the tests. I&#039;ll try to keep up to date with it, and will do occasional posts here as and when I think of things worth posting -- planning on doing one about how I solved the Observer/ActiveRecord/feed.publishActionOfUser/profile.getFBML issue.</description>
		<content:encoded><![CDATA[<p>Yeah, the canvas stuff is tricky (my app is actually a canvas app), and developing for it doubly so (unless you use a SSH connection). I&#8217;m a bit averse to overwriting the standard url_for methods (hence the fb_redirect_to method), and overwriting the session starts getting tricky when your dealing with a decent-sized existing app.</p>
<p>One of the issues for me was the fact that I needed to add Facebook functionality to an existing app, with an existing userbase (many of whom wouldn&#8217;t want to use Facebook). For that, a lightweight solution seemed more appropriate than one that allow for desktop usage, console etc. Especially as the code I&#8217;ve got is now (wasn&#8217;t to begin with though!) fairly well covered with tests <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>It actually surprised me how straightforward the library was to write, once I sat down to spec it out with tests &#8212; but then that&#8217;s the beauty of Ruby. In writing the app (now done, currently being tested), I&#8217;ve had to add virtually nothing more to it.</p>
<p>Anyway, good luck with RFacebook, and good luck with the tests. I&#8217;ll try to keep up to date with it, and will do occasional posts here as and when I think of things worth posting &#8212; planning on doing one about how I solved the Observer/ActiveRecord/feed.publishActionOfUser/profile.getFBML issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt P</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-6</link>
		<dc:creator>Matt P</dc:creator>
		<pubDate>Tue, 21 Aug 2007 19:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-6</guid>
		<description>Yea, no hard feelings (sorry if it came off that way at all).  Just wanted to see if I could grab another good Rails developer...I&#039;m really hoping to see the community center on a particular project.

I think the complexity of the RFacebook session classes is perhaps due to the fact that it is actually intended to be able to be used outside of Rails, even in commandline apps (hence the FacebookDesktopSession class).  It was not, however, ported directly from PHP - it was definitely written with Ruby in mind, although I was still fairly new to Ruby at the time ;)

I&#039;m planning on checking through your unit tests to see if they can be added on to RFacebook.  Thanks for the permission.

On a side note, if you&#039;re developing a Canvas app in the future, you may want to give RFacebook another try (after we get unit testing, of course).  There are some great features for Canvas apps that automatically rewrite urls for link_to, redirect_to, image_path, as well as automatically enable usage of session and flash.</description>
		<content:encoded><![CDATA[<p>Yea, no hard feelings (sorry if it came off that way at all).  Just wanted to see if I could grab another good Rails developer&#8230;I&#8217;m really hoping to see the community center on a particular project.</p>
<p>I think the complexity of the RFacebook session classes is perhaps due to the fact that it is actually intended to be able to be used outside of Rails, even in commandline apps (hence the FacebookDesktopSession class).  It was not, however, ported directly from PHP &#8211; it was definitely written with Ruby in mind, although I was still fairly new to Ruby at the time <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I&#8217;m planning on checking through your unit tests to see if they can be added on to RFacebook.  Thanks for the permission.</p>
<p>On a side note, if you&#8217;re developing a Canvas app in the future, you may want to give RFacebook another try (after we get unit testing, of course).  There are some great features for Canvas apps that automatically rewrite urls for link_to, redirect_to, image_path, as well as automatically enable usage of session and flash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: autopendium</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-4</link>
		<dc:creator>autopendium</dc:creator>
		<pubDate>Tue, 21 Aug 2007 18:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-4</guid>
		<description>Matt

Thanks for dropping by. I&#039;m really not trying to do &quot;yet another&quot; Ruby/Rails library for Facebook (in part, that&#039;s why I haven&#039;t wrapped it us as a plugin). I just needed (for my own piece of mind, if nothing else) to have a library with tests.

I originally planned to write tests for RFacebook, and then after looking at the code realised I didn&#039;t understand what was going on as far as the request/response cycle goes. It all seemed very complicated.

The brief library I did (which I&#039;m now using without any probs) came from the opposite direction you took with RFacebook (I&#039;m not saying what I did was better, just that I felt more comfortable with it) -- rather than rewriting the php code in Ruby, I wrote the tests, then wrote fresh Ruby to implement the behaviour the tests described.

In the end it was a lot easier than writing the tests for an existing library, but if there&#039;s anything in there (tests or otherwise) that&#039;s useful to RFacebook do go ahead and use it -- I&#039;ve released it under the same license as Rails.</description>
		<content:encoded><![CDATA[<p>Matt</p>
<p>Thanks for dropping by. I&#8217;m really not trying to do &#8220;yet another&#8221; Ruby/Rails library for Facebook (in part, that&#8217;s why I haven&#8217;t wrapped it us as a plugin). I just needed (for my own piece of mind, if nothing else) to have a library with tests.</p>
<p>I originally planned to write tests for RFacebook, and then after looking at the code realised I didn&#8217;t understand what was going on as far as the request/response cycle goes. It all seemed very complicated.</p>
<p>The brief library I did (which I&#8217;m now using without any probs) came from the opposite direction you took with RFacebook (I&#8217;m not saying what I did was better, just that I felt more comfortable with it) &#8212; rather than rewriting the php code in Ruby, I wrote the tests, then wrote fresh Ruby to implement the behaviour the tests described.</p>
<p>In the end it was a lot easier than writing the tests for an existing library, but if there&#8217;s anything in there (tests or otherwise) that&#8217;s useful to RFacebook do go ahead and use it &#8212; I&#8217;ve released it under the same license as Rails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt P</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-3</link>
		<dc:creator>Matt P</dc:creator>
		<pubDate>Tue, 21 Aug 2007 17:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-3</guid>
		<description>hey Chris.  We&#039;ve spoken before regarding the RFacebook plugin and integration with Rails (and the need for unit tests).

Seeing as you&#039;ve gotten some experience writing up unit tests for the Facebook request/response cycle,  it would be nice if you could contribute that to the RFacebook project.  I&#039;ve requested someone with Rails experience at the new homepage:

http://rfacebook.rubyforge.org

There is a great community of people using the library and vetting the corner-cases, and the lastest version (0.9.1) is quite solid.  The last major missing piece is, as you correctly observed, the lack of unit tests.  Rather than rolling &quot;yet another&quot; Ruby and Rails library for Facebook, the community would really appreciate if you contributed to the RFacebook library directly.  The project is open-source just for that reason :)  Shoot me an email if you&#039;d like to join.</description>
		<content:encoded><![CDATA[<p>hey Chris.  We&#8217;ve spoken before regarding the RFacebook plugin and integration with Rails (and the need for unit tests).</p>
<p>Seeing as you&#8217;ve gotten some experience writing up unit tests for the Facebook request/response cycle,  it would be nice if you could contribute that to the RFacebook project.  I&#8217;ve requested someone with Rails experience at the new homepage:</p>
<p><a href="http://rfacebook.rubyforge.org" rel="nofollow">http://rfacebook.rubyforge.org</a></p>
<p>There is a great community of people using the library and vetting the corner-cases, and the lastest version (0.9.1) is quite solid.  The last major missing piece is, as you correctly observed, the lack of unit tests.  Rather than rolling &#8220;yet another&#8221; Ruby and Rails library for Facebook, the community would really appreciate if you contributed to the RFacebook library directly.  The project is open-source just for that reason <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Shoot me an email if you&#8217;d like to join.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The how and why of my streamlined Rails Facebook library &#171; Pushrod</title>
		<link>http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-2</link>
		<dc:creator>The how and why of my streamlined Rails Facebook library &#171; Pushrod</dc:creator>
		<pubDate>Wed, 15 Aug 2007 19:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/14/rails-ruby-facebook-and-tests-my-own-itch-scratched/#comment-2</guid>
		<description>[...] 15th, 2007   As I wrote in my previous post (Rails, Ruby, Facebook and tests — my own itch scratched), I needed a Facebook library for Autopendium :: Stuff about old cars, the classic car community [...]</description>
		<content:encoded><![CDATA[<p>[...] 15th, 2007   As I wrote in my previous post (Rails, Ruby, Facebook and tests — my own itch scratched), I needed a Facebook library for Autopendium :: Stuff about old cars, the classic car community [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
