<?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/"
		>
<channel>
	<title>Comments for The next 10,000 hours</title>
	<atom:link href="http://www.trouble.net.au/blog/korny/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trouble.net.au/blog/korny</link>
	<description>Korny&#039;s tech blog</description>
	<lastBuildDate>Sat, 04 Jun 2011 05:58:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Behaviour Driven Development with Cucumber and Selenium by korny</title>
		<link>http://www.trouble.net.au/blog/korny/2009/11/03/behaviour-driven-development-with-cucumber-and-selenium/comment-page-1/#comment-50</link>
		<dc:creator>korny</dc:creator>
		<pubDate>Sat, 04 Jun 2011 05:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=102#comment-50</guid>
		<description>This article is rather old - I might be able to write up a better example, for instance these days I&#039;d use selenium 2 (aka WebDriver) - but I think that&#039;d probably be a more complex example, not a simpler example!  It&#039;s a fairly complex thing to do, sadly, to get cucumber and selenium playing nicely together.

For more examples of cucumber in general, take a look at http://cukes.info and the wiki linked above.</description>
		<content:encoded><![CDATA[<p>This article is rather old &#8211; I might be able to write up a better example, for instance these days I&#8217;d use selenium 2 (aka WebDriver) &#8211; but I think that&#8217;d probably be a more complex example, not a simpler example!  It&#8217;s a fairly complex thing to do, sadly, to get cucumber and selenium playing nicely together.</p>
<p>For more examples of cucumber in general, take a look at <a href="http://cukes.info" rel="nofollow">http://cukes.info</a> and the wiki linked above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Behaviour Driven Development with Cucumber and Selenium by korny</title>
		<link>http://www.trouble.net.au/blog/korny/2009/11/03/behaviour-driven-development-with-cucumber-and-selenium/comment-page-1/#comment-49</link>
		<dc:creator>korny</dc:creator>
		<pubDate>Sat, 04 Jun 2011 05:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=102#comment-49</guid>
		<description>The world is the context that all cucumber steps run in - see &lt;a href=&quot;https://github.com/cucumber/cucumber/wiki/A-Whole-New-World&quot; rel=&quot;nofollow&quot;&gt;https://github.com/cucumber/cucumber/wiki/A-Whole-New-World&lt;/a&gt; - it&#039;s handy as you can add methods and data to it for reuse throughout your steps.

You &lt;i&gt;could&lt;/i&gt; just pass the browser around in this example, but the world is more widely useful.</description>
		<content:encoded><![CDATA[<p>The world is the context that all cucumber steps run in &#8211; see <a href="https://github.com/cucumber/cucumber/wiki/A-Whole-New-World" rel="nofollow">https://github.com/cucumber/cucumber/wiki/A-Whole-New-World</a> &#8211; it&#8217;s handy as you can add methods and data to it for reuse throughout your steps.</p>
<p>You <i>could</i> just pass the browser around in this example, but the world is more widely useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Behaviour Driven Development with Cucumber and Selenium by Mikey</title>
		<link>http://www.trouble.net.au/blog/korny/2009/11/03/behaviour-driven-development-with-cucumber-and-selenium/comment-page-1/#comment-48</link>
		<dc:creator>Mikey</dc:creator>
		<pubDate>Sat, 04 Jun 2011 05:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=102#comment-48</guid>
		<description>This is good stuff.  I kinda get it.  Would you mind to give a simpler example?

Btw, why do you need to use world as an arg in your constructor (initialize method) instead of selenium&#039;s browser?  what&#039;s special about &quot;world&quot;?

thanks,
-m</description>
		<content:encoded><![CDATA[<p>This is good stuff.  I kinda get it.  Would you mind to give a simpler example?</p>
<p>Btw, why do you need to use world as an arg in your constructor (initialize method) instead of selenium&#8217;s browser?  what&#8217;s special about &#8220;world&#8221;?</p>
<p>thanks,<br />
-m</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 Clojure one liners&#8230; by korny</title>
		<link>http://www.trouble.net.au/blog/korny/2011/06/03/10-clojure-one-liners/comment-page-1/#comment-47</link>
		<dc:creator>korny</dc:creator>
		<pubDate>Sat, 04 Jun 2011 01:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=224#comment-47</guid>
		<description>yeah - good point - I had them in my original code, and forgot to clean them up when gisting.</description>
		<content:encoded><![CDATA[<p>yeah &#8211; good point &#8211; I had them in my original code, and forgot to clean them up when gisting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 Clojure one liners&#8230; by Vagif Verdi</title>
		<link>http://www.trouble.net.au/blog/korny/2011/06/03/10-clojure-one-liners/comment-page-1/#comment-46</link>
		<dc:creator>Vagif Verdi</dc:creator>
		<pubDate>Fri, 03 Jun 2011 21:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=224#comment-46</guid>
		<description>Can you remove those unnecessary (println &quot;a2&quot; ...)

They make it look like all clojure one liners are bloated compared to haskell/scala.</description>
		<content:encoded><![CDATA[<p>Can you remove those unnecessary (println &#8220;a2&#8243; &#8230;)</p>
<p>They make it look like all clojure one liners are bloated compared to haskell/scala.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 Clojure one liners&#8230; by korny</title>
		<link>http://www.trouble.net.au/blog/korny/2011/06/03/10-clojure-one-liners/comment-page-1/#comment-45</link>
		<dc:creator>korny</dc:creator>
		<pubDate>Fri, 03 Jun 2011 05:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=224#comment-45</guid>
		<description>@florian - good eyes :)</description>
		<content:encoded><![CDATA[<p>@florian &#8211; good eyes <img src='http://www.trouble.net.au/blog/korny/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 Clojure one liners&#8230; by Florian Hanke</title>
		<link>http://www.trouble.net.au/blog/korny/2011/06/03/10-clojure-one-liners/comment-page-1/#comment-44</link>
		<dc:creator>Florian Hanke</dc:creator>
		<pubDate>Fri, 03 Jun 2011 05:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=224#comment-44</guid>
		<description>Hey Korny

A 1 is missing in the first example: [0,2,3,4,5,6,7,8,9]

Cheers!</description>
		<content:encoded><![CDATA[<p>Hey Korny</p>
<p>A 1 is missing in the first example: [0,2,3,4,5,6,7,8,9]</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mocking functional code in Scala by Eric</title>
		<link>http://www.trouble.net.au/blog/korny/2011/03/27/mocking-functional-code-in-scala/comment-page-1/#comment-43</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 03 Apr 2011 23:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=186#comment-43</guid>
		<description>Hi Korny,

I think there&#039;s a compilation error with the code in your post:

 &quot;Ingestion Manager should&quot; {

This ought to be:

 &quot;Ingestion Manager&quot; should {

otherwise you&#039;re going to get a compilation error saying that the &quot;apply&quot; method on String can not be used.

Eric.</description>
		<content:encoded><![CDATA[<p>Hi Korny,</p>
<p>I think there&#8217;s a compilation error with the code in your post:</p>
<p> &#8220;Ingestion Manager should&#8221; {</p>
<p>This ought to be:</p>
<p> &#8220;Ingestion Manager&#8221; should {</p>
<p>otherwise you&#8217;re going to get a compilation error saying that the &#8220;apply&#8221; method on String can not be used.</p>
<p>Eric.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mocking functional code in Scala by korny</title>
		<link>http://www.trouble.net.au/blog/korny/2011/03/27/mocking-functional-code-in-scala/comment-page-1/#comment-42</link>
		<dc:creator>korny</dc:creator>
		<pubDate>Tue, 29 Mar 2011 09:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=186#comment-42</guid>
		<description>@HoundDog - a bit of both. In rspec you can ditch the &quot;stubForEach&quot; - the equivalent to the above test is at &lt;a href=&quot;https://gist.github.com/892082&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/892082&lt;/a&gt; &lt;strong&gt;Update - I&#039;ve added it to the post above, as formatting in comments is screwed.&lt;/strong&gt;

But just as importantly, I don&#039;t need to have the type right.  Even if there wasn&#039;t an &quot;and_yield&quot; method in rspec, I could have built a stub repository very easily:

&lt;code&gt;class StubRepository
  def initialize(people)
    @people = people
  end
  def each
    @people.each {&#124;person&#124; yield person}
  end
end
&lt;/code&gt;

and then replaced the mock with StubRepository.new([person1,person2]) - and stubbed out the behaviour.  And I wouldn&#039;t have to care what the actual type of PersonRepository *is*.  I could even write the test and get it running before I&#039;d written PersonRepository.  That&#039;s the kind of TDD I miss.
</description>
		<content:encoded><![CDATA[<p>@HoundDog &#8211; a bit of both. In rspec you can ditch the &#8220;stubForEach&#8221; &#8211; the equivalent to the above test is at <a href="https://gist.github.com/892082" rel="nofollow">https://gist.github.com/892082</a> <strong>Update &#8211; I&#8217;ve added it to the post above, as formatting in comments is screwed.</strong></p>
<p>But just as importantly, I don&#8217;t need to have the type right.  Even if there wasn&#8217;t an &#8220;and_yield&#8221; method in rspec, I could have built a stub repository very easily:</p>
<p><code>class StubRepository<br />
  def initialize(people)<br />
    @people = people<br />
  end<br />
  def each<br />
    @people.each {|person| yield person}<br />
  end<br />
end<br />
</code></p>
<p>and then replaced the mock with StubRepository.new([person1,person2]) &#8211; and stubbed out the behaviour.  And I wouldn&#8217;t have to care what the actual type of PersonRepository *is*.  I could even write the test and get it running before I&#8217;d written PersonRepository.  That&#8217;s the kind of TDD I miss.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mocking functional code in Scala by Hound Doug</title>
		<link>http://www.trouble.net.au/blog/korny/2011/03/27/mocking-functional-code-in-scala/comment-page-1/#comment-41</link>
		<dc:creator>Hound Doug</dc:creator>
		<pubDate>Mon, 28 Mar 2011 23:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.trouble.net.au/blog/korny/?p=186#comment-41</guid>
		<description>Hi Korny, not being familiar with ruby/rspec just wondering what the main saving would be over the test case above.  Is it that you could ditch the &quot;stubForEach&quot; definition at the start.  And are you finding that you have to do that kind of make-the-compiler-happy type gymnastics for each test case.</description>
		<content:encoded><![CDATA[<p>Hi Korny, not being familiar with ruby/rspec just wondering what the main saving would be over the test case above.  Is it that you could ditch the &#8220;stubForEach&#8221; definition at the start.  And are you finding that you have to do that kind of make-the-compiler-happy type gymnastics for each test case.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

