<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>automagically</title>
	
	<link>http://automagically.co.uk</link>
	<description>by degsy</description>
	<lastBuildDate>Sun, 14 Jun 2009 11:21:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/automagically" type="application/rss+xml" /><item>
		<title>BDD with elegance and joy</title>
		<link>http://feedproxy.google.com/~r/automagically/~3/8wq8nsoBLTo/</link>
		<comments>http://automagically.co.uk/2009/06/13/bdd-with-elegance-and-joy/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 14:37:30 +0000</pubDate>
		<dc:creator>degsy</dc:creator>
				<category><![CDATA[Cucumber]]></category>
		<category><![CDATA[My Chain]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[bdd]]></category>
		<category><![CDATA[degsy]]></category>
		<category><![CDATA[my chain]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://automagically.co.uk/?p=128</guid>
		<description><![CDATA[Cucumber is sold as &#8220;Behaviour Driven Development with elegance and joy&#8221;, according to their website.
I&#8217;ve not had the opportunity to use full BDD testing in my day job for some time, in fact probably never &#8211; my last foray into testing was probably JUnit in my Java days&#8230; so I know it&#8217;s about time I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://automagically.co.uk/wp-content/uploads/2009/06/2738586453_f23bc8244e_m.jpg" alt="BDD with elegance and joy" title="BDD with elegance and joy" width="240" height="240" class="alignleft size-full wp-image-129" />Cucumber is sold as &#8220;Behaviour Driven Development with elegance and joy&#8221;, according to <a href="http://cukes.info/">their website</a>.</p>
<p>I&#8217;ve not had the opportunity to use full BDD testing in my day job for some time, in fact probably never &#8211; my last foray into testing was probably JUnit in my Java days&#8230; so I know it&#8217;s about time I got up to speed with it.</p>
<p>Like CouchDB, I saw a great presentation at <a href="http://scotlandonrails.com/">Scotland on Rails</a>, entitled <a href="http://scotland-on-rails.s3.amazonaws.com/1A06_JosephWilk-SOR.mp4">Working Outside-in with Cucumber and RSpec</a> (link is direct to mp4 file), that showed me that Cucumber was not as hard to learn as first thought and not as confusing as some of the <a href="http://rspec.info/">RSpec</a> screencasts I saw via <a href="http://peepcode.com/">PeepCode</a>.</p>
<p>Here is a very basic example, of simple Cucumber syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">  Scenario: Learning to use Cucumber
    Given that I do not know that much about &quot;Cucumber&quot;
    And I have not used &quot;Behaviour Driven Development&quot; really in anger before
    When I start &quot;My Chain&quot;
    Then I should see improvement
    When I start to blog about it</pre></div></div>

<p>So now my chain has all it&#8217;s components ready: Sinatra, CouchDB and Cucumber &#8211; and is ready to start!</p>
<blockquote><p>Image courtesy of <a href="http://www.flickr.com/photos/vizzzual-dot-com/">viZZZual.com</a></p></blockquote>
<img src="http://feeds.feedburner.com/~r/automagically/~4/8wq8nsoBLTo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://automagically.co.uk/2009/06/13/bdd-with-elegance-and-joy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://scotland-on-rails.s3.amazonaws.com/1A06_JosephWilk-SOR.mp4" length="217811546" type="video/mp4" />
		<feedburner:origLink>http://automagically.co.uk/2009/06/13/bdd-with-elegance-and-joy/</feedburner:origLink></item>
		<item>
		<title>Relaxing on the Couch</title>
		<link>http://feedproxy.google.com/~r/automagically/~3/gvtvkdSbEjI/</link>
		<comments>http://automagically.co.uk/2009/06/13/relaxing-on-the-couch/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 12:25:48 +0000</pubDate>
		<dc:creator>degsy</dc:creator>
				<category><![CDATA[CouchDB]]></category>
		<category><![CDATA[My Chain]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[couchrest]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[degsy]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[scotland on rails]]></category>

		<guid isPermaLink="false">http://automagically.co.uk/?p=118</guid>
		<description><![CDATA[When deciding what database to use for my application rewrite, I went through a few options, including the usual options like MySQL, some hard options like triple stores (not a silly idea in itself, but just too much for this application) and then settled on CouchDB.
I knew a little about this previously, and then I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://automagically.co.uk/wp-content/uploads/2009/06/couchdb-logo.png" alt="CouchDB Logo" title="CouchDB Logo" width="220" height="200" class="alignleft size-full wp-image-121" align="left" />When deciding what database to use for my application rewrite, I went through a few options, including the usual options like MySQL, some hard options like triple stores (not a silly idea in itself, but just too much for this application) and then settled on <a href="http://couchdb.apache.org/">CouchDB</a>.</p>
<p>I knew a little about this previously, and then I saw a presentation at <a href="http://scotlandonrails.com/">Scotland on Rails</a> which made my mind up about whether it would be suitable for what I was doing or not &#8211; it definitely is and therefore was my final choice.</p>
<p>There are plenty of gem options available for Ruby talking to CouchDB, I tried a couple but settled on <a href="http://github.com/jchris/couchrest/tree/master">CouchRest</a> because it didn&#8217;t try to be ActiveRecord, and forced me to use more Ruby &#8211; which is obviously what I&#8217;m trying to do as part of this plan!</p>
<p>These are some links to tools, presentations or general information I have used in making this choice:</p>
<p><a href="http://janl.github.com/couchdbx/">The one-click CouchDB package for the Mac</a><br />
<a href="http://www.slideshare.net/mattetti/couchdb-perform-like-a-pr0n-star">CouchDB: Perform like a pr0n star</a><br />
<a href="http://upstream-berlin.com/2009/03/31/the-case-of-activerecord-vs-couchdb/">The case of ActiveRecord vs. CouchDB</a><br />
<a href="http://jchrisa.net/drl/ApacheCon-Talk-Slides/CouchDB-Intro-EU.pdf">CouchDB introduction PDF</a><br />
<a href="http://www.infoq.com/presentations/katz-couchdb-and-me">CouchDB and Me</a><br />
<a href="http://couchdb.apache.org/">CouchDB website</a><br />
<a href="http://books.couchdb.org/relax/">CouchDB: The Definitive Guide</a><br />
<a href="http://blog.labnotes.org/2007/09/02/couchdb-thinking-beyond-the-rdbms/">CouchDB: Thinking beyond the RDBMS</a><br />
<a href="http://www.ibm.com/developerworks/web/library/os-couchdb/index.html">Exploring CouchDB</a><br />
<a href="http://blog.leetsoft.com/2007/9/2/futuretalk-couchdb">Futuretalk: CouchDB</a><br />
<a href="http://wiki.apache.org/couchdb/ ">Apache CouchDB Project Wiki</a></p>
<blockquote><p>Image from <a href="http://couchdb.apache.org/">CouchDB website</a></p></blockquote>
<img src="http://feeds.feedburner.com/~r/automagically/~4/gvtvkdSbEjI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://automagically.co.uk/2009/06/13/relaxing-on-the-couch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://automagically.co.uk/2009/06/13/relaxing-on-the-couch/</feedburner:origLink></item>
		<item>
		<title>Sinatra has taken the stage</title>
		<link>http://feedproxy.google.com/~r/automagically/~3/oDABYIlhWsk/</link>
		<comments>http://automagically.co.uk/2009/06/13/sinatra-has-taken-the-stage/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 12:12:45 +0000</pubDate>
		<dc:creator>degsy</dc:creator>
				<category><![CDATA[My Chain]]></category>
		<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[degsy]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://automagically.co.uk/?p=107</guid>
		<description><![CDATA[I&#8217;ve been using Sinatra now for about six months all in, as I decided to learn more Ruby, and for sites that aren&#8217;t &#8216;big&#8217; enough for Rails.
Another reason for using Sinatra, was to deploy application on Google App Engine via JRuby and it was during this, that I decided that Sinatra wasn&#8217;t just for small [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://automagically.co.uk/wp-content/uploads/2009/06/10378594_7f0f7c9bef_m.jpg" alt="Frank Sinatra" title="Frank Sinatra" width="240" height="172" class="size-full wp-image-112" align="left" />I&#8217;ve been using <a href="http://www.sinatrarb.com/">Sinatra</a> now for about six months all in, as I decided to learn more <a href="http://www.ruby-lang.org/en/">Ruby</a>, and for sites that aren&#8217;t &#8216;big&#8217; enough for <a href="http://rubyonrails.org/">Rails</a>.</p>
<p>Another reason for using Sinatra, was to deploy application on <a href="http://code.google.com/appengine/">Google App Engine</a> via <a href="http://jruby.codehaus.org/">JRuby</a> and it was during this, that I decided that Sinatra wasn&#8217;t just for small applications and I could rewrite my <a href="http://scottishfootballarchive.co.uk/">Scottish Football Archive</a> site using it.</p>
<p>I&#8217;m hoping using my blog, I can introduce some in depth articles about Sinatra as I explain my conversion from Rails, but Sinatra really is as simple as the following, just to get you up and started:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'sinatra'</span>
get <span style="color:#996600;">'/'</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#996600;">&quot;Hello, World!&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Here are some links for further information:</p>
<p><a href="http://www.sinatrarb.com/">Sinatra website</a><br />
<a href="http://github.com/sinatra/sinatra/tree/master">Sinatra on Github</a><br />
<a href="http://www.rubyinside.com/sinatra-29-links-and-resources-for-a-quicker-easier-way-to-build-webapps-1371.html">Sinatra: 29 Links and Resources For A Quicker, Easier Way to Build Webapps</a><br />
<a href="http://www.pragprog.com/screencasts/v-aksinatra/classy-web-development-with-sinatra ">Classy Web Development with Sinatra</a></p>
<blockquote><p>Image courtesy of <a href="http://www.flickr.com/photos/lewy/">Lewy</a></p></blockquote>
<img src="http://feeds.feedburner.com/~r/automagically/~4/oDABYIlhWsk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://automagically.co.uk/2009/06/13/sinatra-has-taken-the-stage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://automagically.co.uk/2009/06/13/sinatra-has-taken-the-stage/</feedburner:origLink></item>
		<item>
		<title>Starting my own chain</title>
		<link>http://feedproxy.google.com/~r/automagically/~3/RdKQhw85f5k/</link>
		<comments>http://automagically.co.uk/2009/06/13/starting-my-own-chain/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 10:36:01 +0000</pubDate>
		<dc:creator>degsy</dc:creator>
				<category><![CDATA[CouchDB]]></category>
		<category><![CDATA[Cucumber]]></category>
		<category><![CDATA[My Chain]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[bdd]]></category>
		<category><![CDATA[degsy]]></category>
		<category><![CDATA[my chain]]></category>
		<category><![CDATA[nwrug]]></category>

		<guid isPermaLink="false">http://automagically.co.uk/?p=98</guid>
		<description><![CDATA[I&#8217;ve decided to start blogging again and while looking for inspiration about what to blog about, I came across Chris Storm&#8217;s My Chain post, which is just what I was looking for!
I&#8217;ve been reading Chris&#8217; posts about converting his site from Rails to something running on CouchDB for a while now, without realising this is [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://automagically.co.uk/wp-content/uploads/2009/06/245562110_c74339c2fe_m.jpg" alt="My Chain" title="My Chain" width="240" height="180" class="size-full wp-image-100" align="left" />I&#8217;ve decided to start blogging again and while looking for inspiration about what to blog about, I came across <a href="http://japhr.blogspot.com/2009/03/my-chain.html">Chris Storm&#8217;s My Chain post</a>, which is just what I was looking for!</p>
<p>I&#8217;ve been reading Chris&#8217; posts about converting his site from <a href="http://rubyonrails.org/">Rails</a> to something running on <a href="http://couchdb.apache.org/">CouchDB</a> for a while now, without realising this is exactly what I want to do too.</p>
<p>Over the past few months, I&#8217;ve been getting to grips with <a href="http://www.sinatrarb.com/">Sinatra</a>, mainly to improve my <a href="http://www.ruby-lang.org/en/">Ruby</a> skills but also just to get me coding again, as my day job at the <a href="http://www.bbc.co.uk/">BBC</a> isn&#8217;t as a developer anymore.</p>
<p>While attending the <a href="http://nwrug.org/">North West Ruby User Group</a>, I&#8217;ve also got more to grips with <a href="http://cukes.info/">Cucumber</a> and the whole <a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">Behaviour Driven Development</a> thing but have yet to put this into full practice.</p>
<p>Therefore, I&#8217;m starting &#8220;My Chain&#8221; in effect, and I&#8217;m going to blog about my experiences while I convert my existing Ruby on Rails site, the <a href="http://www.scottishfootballarchive.co.uk">Scottish Football Archive</a>, to Sinatra, using CouchDB and having it fully tested with Cucumber.</p>
<p>Seems like a lot to do, but that&#8217;s hopefully the point&#8230;</p>
<blockquote><p>Image courtesy of <a href="http://www.flickr.com/photos/mklingo/">Max Klingensmith</a></p></blockquote>
<img src="http://feeds.feedburner.com/~r/automagically/~4/RdKQhw85f5k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://automagically.co.uk/2009/06/13/starting-my-own-chain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://automagically.co.uk/2009/06/13/starting-my-own-chain/</feedburner:origLink></item>
	</channel>
</rss>
