This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Scala - The next steps

 
Ranch Hand
Posts: 453
Scala jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 453
Scala jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

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
 
Ranch Hand
Posts: 37
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book 'Play for Scala' might be useful as well.
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!