Month: January 2010

  • Expressive or just terse?

    This Scala code populates a list with objects: So does this. If you’re a Java programmer and just balked, you’re probably not alone. I know what it does and I have to read it from left to right to left to right again. In this case the shortcut’s a Scala mental snag equivalent to Java […]

  • NoSuchMethodException launching Scala App

    This is a pretty standard thing to do in Java: So you reckon you’d be able to do this in Scala: You go to run it and: Exception in thread “main” java.lang.NoSuchMethodException: id.jakubkorab.App.main([Ljava.lang.String;) at java.lang.Class.getMethod(Class.java:1605) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:107) Turns out the Scala compiler doesn’t treat application launching in the same way that it treats other classes […]

  • Running a Scala App in IDEA 9

    My first experience with IDEA hasn’t been a good one. In all fairness, not IDEA itself, but with a plugin (isn’t that always the way). I use Eclipse on a day to day basis, but since I heard that the IDEA Scala support is much better, I decided to download the Community Edition and give […]