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.
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?
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.
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:
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 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!
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
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.
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.