[Logo]
Forums Register Login
Applying Scala in Existing Java Project
(1 like)
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?
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.
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.
 
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
 
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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 18, 2017 11:11:36.