• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Applying Scala in Existing Java Project

 
Ranch Hand
Posts: 258
2
IntelliJ IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 55
Scala Mac OS X Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
    Bookmark Topic Watch Topic
  • New Topic