This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Scala and the fly likes Applying Scala in Existing Java Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark "Applying Scala in Existing Java Project" Watch "Applying Scala in Existing Java Project" New topic
Author

Applying Scala in Existing Java Project

Raymond Tong
Ranch Hand

Joined: Aug 15, 2010
Posts: 230
    
    2

How easy to add Scala into existing Java project?
We are thinking to start with writing unit test in Scala to get familiar with it before writing production code in Scala.
I heard of ScalaTest, would that be useful for us?

Would that be any advantage if I learn Haskell before Scala?
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4425
    
    8

I remember reading that was the approach The Guardian took when they adopted Scala. They started writing tests in Scala. That way they were able to evaluate the effectiveness with read but non-production code. When they then decided to use Scala seriously their developers were already up to speed.
Josh Suereth
Author
Greenhorn

Joined: Jan 24, 2013
Posts: 15
Funny enough, the original proposed title for "Scala In Depth" was "Effective Scala", however we had to change the flow of the book due to need. Basically, it's hard to talk "Effective Scala" when a large portion of the audience still needed to understand implicits, type systems and the styles and conventions more common in functional programming.
Ivano Pagano
Ranch Hand

Joined: Dec 16, 2006
Posts: 47

Josh Suereth wrote:Funny enough, the original proposed title for "Scala In Depth" was "Effective Scala", however we had to change the flow of the book due to need. Basically, it's hard to talk "Effective Scala" when a large portion of the audience still needed to understand implicits, type systems and the styles and conventions more common in functional programming.


Hi Josh, maybe it's time for you to pick up from where you left and write "Effective Scala"
... hoping things don't turn around once more and you end up with "Scala in Deeper Depth"


I totally appreciated the book, anyway, it's my first recommendation after Martin's own
Ivano
Josh Suereth
Author
Greenhorn

Joined: Jan 24, 2013
Posts: 15
Raymond Tong wrote:Would that be any advantage if I learn Haskell before Scala?


There's always advantages to learning new languages that are far outside the paradigm you're familiar with. Haskell is a nice elegant language that pushes you into a particular direction when coding. While learning ML may be more helpful for using Scala, you won't be disappointed learning Haskell, and you can apply a lot of things you learn inside Scala.

However, don't feel you need to learn Haskell before entering Scala. There's enough in Scala that's comfortable to make the transition without having to dive into the deep end of new concepts. I do recommend wading over to that end eventually, but it's not necessary.
 
Don't get me started about those stupid light bulbs.
 
subject: Applying Scala in Existing Java Project