2. REPL - Read eval print loop
Command line shell for on-the-fly execution of
Scala statements
bin/scala
mvn scala:console (not on Windows)
3. IDE
They are all !#$&§? compared to what you are
used to with Java support
Netbeans (very good) but bad in other areas...
IDEA (pretty good) but slow compilation, bonus
community edition is free (with Scala)
Eclipse (not all that good) but very fast when working
4. Tasks (20 min)
Run REPL Make the two classes
scalaexamples/intro/HelloWorld.scala print
Windows: “Hello world”. What is the difference?
<<scala_home>>/bin/scala
Remove comments from @Test for the
Others: mvn scala:console (from methods in
scalaexamples/intro) scalaexamples/intro/CreateStuffTest.scala.
Execute a few statements Make tests pass.
Run unit test in IDE (JUnit 4)
Open the 'intro' project
scalaexamples.intro.MyFirstTest
Create a failing test
Make it run