aspose file tools*
The moose likes Scala and the fly likes Scala - The next steps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Scala
Bookmark "Scala - The next steps" Watch "Scala - The next steps" New topic
Author

Scala - The next steps

Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 326

I need some advice..I'm currently a server side Java developer using all the usual technologies (Spring, Hibernate/JPA, JBoss, etc) and I have been trying (with varying degrees of success) to learn Scala. I have done the Functional Programming course on Coursera already and read Odersky's book but I need to translate this into a real life project.
I have some work I need to do and thought I could do a Scala version as well as a Java version but I'm a bit lost with where to start. Does anyone know of a good resource that bridges the gap between the "Hello World" type tutorials and a real-life project? Are there Scala versions of Spring and Hibernate/JPA or do I need to mix in some Java?
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1716
    
  14

I'm in a similar position, but hoping to improve my Scala with the new course starting next week.

You could look at the Play framework for web applications, which is written in Scala (and uses Akka) but is also available in a Java version so you could do a "compare and contrast" exercise. Not sure how far it uses Java tech like Spring/JPA etc underneath, but then I'm not sure how much of that stuff you actually need if you're using Scala anyway.


No more Blub for me, thank you, Vicar.
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 326

Well I spent the afternoon doing some research and found the Typesafe Activator project that is answering a lot of my questions, looks very promising:
Activator
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1716
    
  14

Will Myers wrote:Well I spent the afternoon doing some research and found the Typesafe Activator project that is answering a lot of my questions, looks very promising:
Activator

Thanks for the link. Have to confess I downloaded it and played around with it a bit, then sat there scratching my head and wondering why I would choose this over e.g. the Eclipse-based Scala IDE? The Activator is interesting, but right now it feels more like a proof of concept - a bit like Chris Granger's Light Table for Clojure.

Incidentally, I just stumbled across a video from Typesafe on "Building Reactive Apps with the Typesafe Platform" which you might be interested in:
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1716
    
  14

chris webster wrote:... sat there scratching my head and wondering why I would choose this over e.g. the Eclipse-based Scala IDE?

OK, revising my opinion somewhat. If you sign up for a free account at Typesafe, you can enable the Typesafe Console inside Activator, which gives you tools to monitor Akka actors etc nicely via your browser e.g. while running the sample Reactive Stocks application. Don't entirely understand what I'm looking at yet, but it's definitely a nice touch!
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 326

Have to confess I downloaded it and played around with it a bit, then sat there scratching my head and wondering why I would choose this over e.g. the Eclipse-based Scala IDE? The Activator is interesting, but right now it feels more like a proof of concept - a bit like Chris Granger's Light Table for Clojure.


I have been looking at more from a tutorial point of view, it walks through the directories and the code quite nicely (or the Play one does) and looks like a good way to generate the bare bones of an application in much the same way Spring Roo does, then you can convert it into a Scala IDE project and go from there. I will confess I didn't spend too much time on it but it certainly looks promising.

Thanks for the video, I'll give that a watch on my commute
Khuma Chhakchhuak
Ranch Hand

Joined: Nov 30, 2012
Posts: 37

The book 'Play for Scala' might be useful as well.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 688

Hi,

I am agree with chris and Khuma, Play framework will help you lot to understand web functionality. Typesafe also having database Slik where you will get some kind of data base related exposure.

And to start with Typesafe stack I must say download typesafe activator, where you will have provision to create different types of application with Typesafe stack.

@chris
then sat there scratching my head and wondering why I would choose this over e.g. the Eclipse-based Scala IDE?


It is very easy for new developer who wants to learn Scala with typesafe activator because Scala using sbt for their build system and for new developer it is difficult to manage all.

However typesafe activator gives you option where you can make your project eclipse compatible and start to work in eclipse if you want,

In Activator go to Code and then select the Open menu to open a project in Eclipse or IntelliJ. Projects created by Activator are just standard SBT projects so they can be used anywhere that you can use SBT.

Typesafe Activator

After doing this you can import Scala project to eclipse and whatever code you change in eclipse it will automatically reflect in your typesafe activator.

Hope that helps.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Scala - The next steps