WebObjects with Scala

Version 289.1 by Ravi Mendis on 2009/09/15 19:26

What is Scala?

Scala is a modern language not unlike Groovy.
It is said to be more powerful (and faster) than Groovy or Rails which has been the reason for its adoption at sites like Twitter.

Why Use Scala?

In a Web 2.0, building concurrent WebObjects applications is a must.
Developing and maintaining a concurrent or multi-threaded WebObjects application can be challenging.

Scala offers concurrency built into the language.
So it may offer new solutions to WO developers...

Can WebObjects be Programmed With Scala?

Yes. It is very simple.
Scala compiles to java bytecode. Hence using it with WebObjects is fairly straightforward.

How to Develop WebObjects With Scala

  1. Install the Scala eclipse IDE
  2. Add Scala support to your project
    1. Right-click your project in the WO Explorer
    2. In the context menu select Scala -> Add Scala Nature
  3. Convert or use .scala instead of .java source
Warning

Note

This is for Eclipse/WOLips developers