<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>mccv - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-5386b2e7" type="application/json"/><link>http://mccv.disqus.com/</link><description></description><language>en</language><lastBuildDate>Fri, 07 Aug 2009 07:32:39 -0000</lastBuildDate><item><title>Re: Things that are easier in Scala vol. 2</title><link>http://www.themcwongs.com/?p=74#comment-14422877</link><description>Ah yes of course - I remembered that soon after I posted :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Fri, 07 Aug 2009 07:32:39 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol. 2</title><link>http://www.themcwongs.com/?p=74#comment-13993954</link><description>Not sure on the exact question... all of the Java ones are checked exceptions.  Scala doesn't force you to catch them, so I didn't.  Realistically there should by a try block somewhere to handle Thrift and Cassandra errors.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mccv</dc:creator><pubDate>Wed, 05 Aug 2009 15:23:54 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol 1</title><link>http://www.themcwongs.com/?p=50#comment-13986738</link><description>A couple of things..&lt;br&gt;&lt;br&gt;a) If you make it a trait - you can mix it in and just call tryNTimes without the object classifier - that's closer still, right?&lt;br&gt;&lt;br&gt;&lt;br&gt;b) You can still retry and function, by creating a curried function or function pointer and passing that in:&lt;br&gt;&lt;br&gt;def myFunc(s:String) { println(s) }&lt;br&gt;def toRetry = myFunc("Hi!")&lt;br&gt;tryNTimes(toRetry, 5)&lt;br&gt;&lt;br&gt;right? I used this style in some test code I just wrote, where I had a test sequence that applied to several code blocks, some that took params.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Wed, 05 Aug 2009 12:54:11 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol. 2</title><link>http://www.themcwongs.com/?p=74#comment-13986240</link><description>Nice - I like. Were all those exceptions run time exceptions - is that why you aren't catching them?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Wed, 05 Aug 2009 12:44:21 -0000</pubDate></item><item><title>Re: Running Scala specs tests in Maven with JUnit 4</title><link>http://www.themcwongs.com/?p=66#comment-13399737</link><description>Excellent, that would be quite a bit nicer.  Having the object/class pair is a bit clunky... Overall the framework is very nice though.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mccv</dc:creator><pubDate>Mon, 27 Jul 2009 11:01:50 -0000</pubDate></item><item><title>Re: Running Scala specs tests in Maven with JUnit 4</title><link>http://www.themcwongs.com/?p=66#comment-13366874</link><description>Hi Mark,&lt;br&gt;&lt;br&gt;Thanks for your post.&lt;br&gt;&lt;br&gt;2 tips for making your specification even more concise (with specs.1.6.0-SNAPSHOT or 1.5.1 SNAPSHOT):&lt;br&gt;&lt;br&gt;This will make your specification class a JUnit test:&lt;br&gt;class BasicCassandra extends SpecificationWithJUnit { ... }&lt;br&gt;&lt;br&gt;It is still runnable in the console with: &lt;br&gt;&lt;br&gt;scala -cp &amp;lt;...&amp;gt; run BasicCassandra&lt;br&gt;&lt;br&gt;And you can write (if you like it):&lt;br&gt;&lt;br&gt;cass.connect().before&lt;br&gt;cass.close().after&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Eric.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Sun, 26 Jul 2009 20:05:59 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol 1</title><link>http://www.themcwongs.com/?p=50#comment-9819536</link><description>Wow!  Just in time as I'm contemplating retrying slurping of a user's tweets.  I'll add something like "requeue" as the final result where all N tries failed.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khrabrov</dc:creator><pubDate>Sat, 23 May 2009 00:26:57 -0000</pubDate></item></channel></rss>