<?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: Getting Into Scala</title>
	<atom:link href="http://www.symphonious.net/2009/10/15/getting-into-scala/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.symphonious.net/2009/10/15/getting-into-scala/</link>
	<description>Living in a state of accord.</description>
	<lastBuildDate>Fri, 12 Mar 2010 07:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Symphonious &#187; Using Scala in .NET</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174326</link>
		<dc:creator>Symphonious &#187; Using Scala in .NET</dc:creator>
		<pubDate>Mon, 19 Oct 2009 14:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174326</guid>
		<description>[...] &#171; Getting Into Scala [...]</description>
		<content:encoded><![CDATA[<p>[...] &#171; Getting Into Scala [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174322</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Mon, 19 Oct 2009 08:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174322</guid>
		<description>ScalaTest gives fine error messages, horrible stack traces.  Specs does too if you limit yourself to a JUnit model of writing tests but then you don&#039;t get the nice nested structure of Specs.  The problem with ScalaTest is that it&#039;s just too hard to get setup and working properly and I happen to like many of the features of Specs.

The problem with not being able to run all the tests is a lack of tooling thing, hence it&#039;s Scala related.  I can run all the tests in my project for Java, I can&#039;t for Scala without resorting to running ant.  NetBeans handles this the best because it just picks up on the Ant JUnit test but then it has no support for Specs style test names etc.</description>
		<content:encoded><![CDATA[<p>ScalaTest gives fine error messages, horrible stack traces.  Specs does too if you limit yourself to a JUnit model of writing tests but then you don&#8217;t get the nice nested structure of Specs.  The problem with ScalaTest is that it&#8217;s just too hard to get setup and working properly and I happen to like many of the features of Specs.</p>
<p>The problem with not being able to run all the tests is a lack of tooling thing, hence it&#8217;s Scala related.  I can run all the tests in my project for Java, I can&#8217;t for Scala without resorting to running ant.  NetBeans handles this the best because it just picks up on the Ant JUnit test but then it has no support for Specs style test names etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Herron</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174321</link>
		<dc:creator>Andrew Herron</dc:creator>
		<pubDate>Mon, 19 Oct 2009 07:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174321</guid>
		<description>The video we watched in the office was demonstrating ScalaTest - and the JUnit runner gave acceptable error messages (from memory, this was a while ago).  Might be worth trying it again :)

Also the only-run-one-package issue you had in IntelliJ is more of an IDE thing than a Scala thing.  There is a way to run all tests in a project, I just haven&#039;t found it yet...</description>
		<content:encoded><![CDATA[<p>The video we watched in the office was demonstrating ScalaTest &#8211; and the JUnit runner gave acceptable error messages (from memory, this was a while ago).  Might be worth trying it again :)</p>
<p>Also the only-run-one-package issue you had in IntelliJ is more of an IDE thing than a Scala thing.  There is a way to run all tests in a project, I just haven&#8217;t found it yet&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174311</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Sat, 17 Oct 2009 10:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174311</guid>
		<description>Yeah I&#039;ve seen sbt mentioned a few times but we have a lot of internal systems that are setup to work with ant already so changing build tools isn&#039;t really something I want to take on.</description>
		<content:encoded><![CDATA[<p>Yeah I&#8217;ve seen sbt mentioned a few times but we have a lot of internal systems that are setup to work with ant already so changing build tools isn&#8217;t really something I want to take on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew cooke</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174310</link>
		<dc:creator>andrew cooke</dc:creator>
		<pubDate>Fri, 16 Oct 2009 20:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174310</guid>
		<description>Hi, Your experience tallies pretty much with my own, but I wanted to mention sbt (Simple Build Tool) which is the one Scala-related tool that I have been really happy with.  It&#039;s a bit like Maven, but much easier to use (and although the community is way smaller the support has been great). http://code.google.com/p/simple-build-tool/  Cheers, Andrew</description>
		<content:encoded><![CDATA[<p>Hi, Your experience tallies pretty much with my own, but I wanted to mention sbt (Simple Build Tool) which is the one Scala-related tool that I have been really happy with.  It&#8217;s a bit like Maven, but much easier to use (and although the community is way smaller the support has been great). <a href="http://code.google.com/p/simple-build-tool/" rel="nofollow">http://code.google.com/p/simple-build-tool/</a>  Cheers, Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174309</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Fri, 16 Oct 2009 16:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174309</guid>
		<description>I guess what I&#039;m getting at is really - Java winds up using a lot of &quot;bad&quot; stubs.  Scala avoids most of them but yes you do still wind up with &quot;good&quot; stubs. :)</description>
		<content:encoded><![CDATA[<p>I guess what I&#8217;m getting at is really &#8211; Java winds up using a lot of &#8220;bad&#8221; stubs.  Scala avoids most of them but yes you do still wind up with &#8220;good&#8221; stubs. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174308</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Fri, 16 Oct 2009 16:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174308</guid>
		<description>To some extent it&#039;s a stub yes, but it&#039;s very much not like stubs in Java - the key difference being that it implements a well defined and *separate* interface, rather than just stubbing out a part of the class.

In other contexts yes, you may still wind up using stubs and mocks in a very similar to Java context, but Scala essentially makes it easier for them to be clearly separate concerns.</description>
		<content:encoded><![CDATA[<p>To some extent it&#8217;s a stub yes, but it&#8217;s very much not like stubs in Java &#8211; the key difference being that it implements a well defined and *separate* interface, rather than just stubbing out a part of the class.</p>
<p>In other contexts yes, you may still wind up using stubs and mocks in a very similar to Java context, but Scala essentially makes it easier for them to be clearly separate concerns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Schmidt</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174307</link>
		<dc:creator>Stephan Schmidt</dc:creator>
		<pubDate>Fri, 16 Oct 2009 16:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174307</guid>
		<description>One additional remark: HardCodedString is in your case a stub. And Mocks help with different things than stubs, so you still need them.</description>
		<content:encoded><![CDATA[<p>One additional remark: HardCodedString is in your case a stub. And Mocks help with different things than stubs, so you still need them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174305</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Fri, 16 Oct 2009 08:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174305</guid>
		<description>Thanks Jorge,
That&#039;s great to know.  Eclipse was messing up all over the place with dual sources but it sounds like that&#039;s just an Eclipse thing - I&#039;ll have to try it again with IntelliJ.

Your scala-javautils library looks promising - I&#039;ll certainly keep an eye on it as it matures.  Thanks for pointing it out.</description>
		<content:encoded><![CDATA[<p>Thanks Jorge,<br />
That&#8217;s great to know.  Eclipse was messing up all over the place with dual sources but it sounds like that&#8217;s just an Eclipse thing &#8211; I&#8217;ll have to try it again with IntelliJ.</p>
<p>Your scala-javautils library looks promising &#8211; I&#8217;ll certainly keep an eye on it as it matures.  Thanks for pointing it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Ortiz</title>
		<link>http://www.symphonious.net/2009/10/15/getting-into-scala/comment-page-1/#comment-174304</link>
		<dc:creator>Jorge Ortiz</dc:creator>
		<pubDate>Fri, 16 Oct 2009 07:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.symphonious.net/?p=1244#comment-174304</guid>
		<description>Hi Adrian,

You can have mixed Java/Scala projects with bidirectional dependencies, it just involves a little more complication in the build system. 1) Invoke scalac on both Java and Scala sources. Scalac can understand Java sources enough to know what their type signatures should be, and uses that to compile the Scala source as if the necessary Java classes were there. 2) Invoke javac on the Java sources, with the Scala classes in the classpath. This will compile your Java code. Sometimes another step is needed, 3) run scalac on your Scala sources, with the compiled Java classes in your classpath. This third step is sometimes, but not always necessary.

Also, to convert collections bidirectionally between Java and Scala, take a look at my open source project: http://github.com/jorgeortiz85/scala-javautils/tree/master

Cheers,

--j</description>
		<content:encoded><![CDATA[<p>Hi Adrian,</p>
<p>You can have mixed Java/Scala projects with bidirectional dependencies, it just involves a little more complication in the build system. 1) Invoke scalac on both Java and Scala sources. Scalac can understand Java sources enough to know what their type signatures should be, and uses that to compile the Scala source as if the necessary Java classes were there. 2) Invoke javac on the Java sources, with the Scala classes in the classpath. This will compile your Java code. Sometimes another step is needed, 3) run scalac on your Scala sources, with the compiled Java classes in your classpath. This third step is sometimes, but not always necessary.</p>
<p>Also, to convert collections bidirectionally between Java and Scala, take a look at my open source project: <a href="http://github.com/jorgeortiz85/scala-javautils/tree/master" rel="nofollow">http://github.com/jorgeortiz85/scala-javautils/tree/master</a></p>
<p>Cheers,</p>
<p>&#8211;j</p>
]]></content:encoded>
	</item>
</channel>
</rss>
