<?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 on: Which One Do You Prefer?</title> <atom:link href="http://davybrion.com/blog/2009/12/which-one-do-you-prefer/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Tue, 22 May 2012 17:40:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: The Murder Mistery &#171; Search And Destroy</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-98960</link> <dc:creator>The Murder Mistery &#171; Search And Destroy</dc:creator> <pubDate>Thu, 14 Apr 2011 18:57:56 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-98960</guid> <description>[...] short while ago Davy Brion posted the first Agatha QuickNet tests. The first version was the initial attempt, the second a [...]</description> <content:encoded><![CDATA[<p>[...] short while ago Davy Brion posted the first Agatha QuickNet tests. The first version was the initial attempt, the second a [...]</p> ]]></content:encoded> </item> <item><title>By: kilfour</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23130</link> <dc:creator>kilfour</dc:creator> <pubDate>Wed, 09 Dec 2009 11:36:12 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23130</guid> <description>I had been thinking about using factorymethods instead of classes to model the transitions, like so:
&lt;code&gt;
public IMetaTransition GetError()
{
return new MetaTransition
{
Precondition = () =&gt; lastProcessRequestsAsyncCompletedArgs != null,
GenerateInput = () =&gt; lastProcessRequestsAsyncCompletedArgs,
Execute = input =&gt; input.Error
}
}
}
&lt;/code&gt;
Which clears things up a little.
I couldn&#039;t get this to work because there is no way to reference the method in the attribute parameter.
Except ofcourse if I used a magic string.</description> <content:encoded><![CDATA[<p>I had been thinking about using factorymethods instead of classes to model the transitions, like so:<br
/> <code><br
/> public IMetaTransition GetError()<br
/> {<br
/> return new MetaTransition<br
/> {<br
/> Precondition = () =&gt; lastProcessRequestsAsyncCompletedArgs != null,<br
/> GenerateInput = () =&gt; lastProcessRequestsAsyncCompletedArgs,<br
/> Execute = input =&gt; input.Error<br
/> }<br
/> }<br
/> }<br
/> </code><br
/> Which clears things up a little.<br
/> I couldn&#8217;t get this to work because there is no way to reference the method in the attribute parameter.<br
/> Except ofcourse if I used a magic string.</p> ]]></content:encoded> </item> <item><title>By: den Ben</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23128</link> <dc:creator>den Ben</dc:creator> <pubDate>Wed, 09 Dec 2009 08:32:54 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23128</guid> <description>allright... i&#039;ll biteon second thought maybe I do prefer the 2nd version
the specs are clearerthe in-line MetaTransition classes are still ugly though ;)maybe it would help if you renamed them to GetResultsTransition and GetErrorTransition</description> <content:encoded><![CDATA[<p>allright&#8230; i&#8217;ll bite</p><p>on second thought maybe I do prefer the 2nd version<br
/> the specs are clearer</p><p>the in-line MetaTransition classes are still ugly though <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p>maybe it would help if you renamed them to GetResultsTransition and GetErrorTransition</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23124</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Tue, 08 Dec 2009 08:26:16 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23124</guid> <description>i used to think Objective C had an ugly syntaxuntil i learned to understand it ;)</description> <content:encoded><![CDATA[<p>i used to think Objective C had an ugly syntax</p><p>until i learned to understand it <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: den Ben</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23123</link> <dc:creator>den Ben</dc:creator> <pubDate>Tue, 08 Dec 2009 08:25:09 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23123</guid> <description>beautiful code is amongst other things easily understandable
ugly code, in most cases, isn&#039;tI haven&#039;t invested a lot of time in figuring out both versions, but if I had to do so I have a feeling I&#039;d go for version 1......although I also have a feeling that would be the wrong one in your opinion ;-)</description> <content:encoded><![CDATA[<p>beautiful code is amongst other things easily understandable<br
/> ugly code, in most cases, isn&#8217;t</p><p>I haven&#8217;t invested a lot of time in figuring out both versions, but if I had to do so I have a feeling I&#8217;d go for version 1&#8230;</p><p>&#8230;although I also have a feeling that would be the wrong one in your opinion <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23121</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Tue, 08 Dec 2009 06:04:24 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23121</guid> <description>well, it&#039;s not really about which version looks better or less ugly... it&#039;s about which version can you (sort of) understand without someone explaining everything to you?</description> <content:encoded><![CDATA[<p>well, it&#8217;s not really about which version looks better or less ugly&#8230; it&#8217;s about which version can you (sort of) understand without someone explaining everything to you?</p> ]]></content:encoded> </item> <item><title>By: Thomas Eyde</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23119</link> <dc:creator>Thomas Eyde</dc:creator> <pubDate>Tue, 08 Dec 2009 00:55:17 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23119</guid> <description>I agree, both versions are ugly:Bad formatting, but that could be a blog limitation.Long names and declarations, who has the time to read&lt;code&gt;
ProcessRequestsAsyncCompletedArgs processRequestsAsyncCompletedArgs = null;
&lt;/code&gt;when this will do:&lt;code&gt;
ProcessRequestsAsyncCompletedArgs completedArgs = null
&lt;/code&gt;And all that Spec-stuff? Too much magic for my taste. I don&#039;t understand any of those tests / specifications.</description> <content:encoded><![CDATA[<p>I agree, both versions are ugly:</p><p>Bad formatting, but that could be a blog limitation.</p><p>Long names and declarations, who has the time to read</p><p><code><br
/> ProcessRequestsAsyncCompletedArgs processRequestsAsyncCompletedArgs = null;<br
/> </code></p><p>when this will do:</p><p><code><br
/> ProcessRequestsAsyncCompletedArgs completedArgs = null<br
/> </code></p><p>And all that Spec-stuff? Too much magic for my taste. I don&#8217;t understand any of those tests / specifications.</p> ]]></content:encoded> </item> <item><title>By: den Ben</title><link>http://davybrion.com/blog/2009/12/which-one-do-you-prefer/comment-page-1/#comment-23115</link> <dc:creator>den Ben</dc:creator> <pubDate>Mon, 07 Dec 2009 20:03:34 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2019#comment-23115</guid> <description>I think both versions are butt ugly... although I can&#039;t really give you a nice alternative.If I really had to choose, I&#039;d go for version 1 since the first line in version 2 makes me want to shut my system down and run away as fast as possible.</description> <content:encoded><![CDATA[<p>I think both versions are butt ugly&#8230; although I can&#8217;t really give you a nice alternative.</p><p>If I really had to choose, I&#8217;d go for version 1 since the first line in version 2 makes me want to shut my system down and run away as fast as possible.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/28 queries in 0.014 seconds using disk: basic
Object Caching 449/549 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-05-23 02:10:14 -->
