views:

179

answers:

3

Possible Duplicate:
Which IDE for Scala 2.8?

I'm learning Scala by reading 'Programming in Scala' book by Odersky et al.

What programming environment people use for scala?

I've used TextMate and emacs, and trying to use eclipse for Java.

+2  A: 

I'm using IntelliJ IDEA Community Edition and Scala plugin for IDEA

desco
+5  A: 

There are several options, with varying degrees of maturity:

  • Emacs has good bindings;
  • Eclipse has a plugin;
  • Intellij IDEA has a Scala plugin and a community edition;
  • NetBeans has it's plugin for scala (I believe a lot of people on the Lift side us it).

Other tools that are not IDEs but will help have on your routine (specially if you are not addicted to IDEs):

  • SBT (Scala Build Tool), has some very nice features, including get Maven Artifacts, continuous compilation and testing, written in Scala;
  • Maven does provide a good support for building (but you have to learn Maven);
  • Specs is an awesome test framework

I like IDEA better then Eclipse, although the Eclipse has evolved well. I chose it because it worked better on refactors and has good support for Maven. Eclipse also support maven, but I felt IDEA's implementation better.

Now these tools are in constant improvement, and all of the have their strengths and weaknesses. Stability has improved a lot, and I felt productive in both Eclipse and IDEA. But my understanding is that the tooling is not at the same level the Java versions.

Thomas
I used Eclipse with the scala plugin a while ago, and it sucked :-) (very unstable)
dkson
I have had mixed results. It has improved a lot. The Scala 2.8.0 help with some of the integration with the way Eclipse sees the compiled code. In general the plugin works. When I used it there where some glitches (like syntax highlighting failures, and code hints not working). But I come from VIM and MAKE so that was never a problem, it does the basic stuff well (compile, navigate, etc).
Thomas
+2  A: 

If your question applies during the time you are going through the book and in general when testing code snippets, a combination of any text editor, sbt and the REPL works well for me.

sbt has a "scratch" mode where it will compile scala you have in the current directory and import jar files automatically. The setup is to download sbt, create the sbt script/bat file, create the scratch project and change the scala version in project/build.properties.

You can then drop into the console and have your jars files in the classpath. You can also use the run command and it will prompt you for which class to run (if you have multiple ones in the current directory).

huynhjl