Wiki source code of WebObjects with Scala
Version 290.1 by Ravi Mendis on 2009/09/15 19:33
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | === What is Scala? === | ||
2 | |||
3 | Scala is a modern language not unlike Groovy. | ||
4 | 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. | ||
5 | |||
6 | === Why Use Scala? === | ||
7 | |||
8 | In a Web 2.0, building concurrent WebObjects applications is a must. | ||
9 | Developing and maintaining a concurrent or multi-threaded WebObjects application can be challenging. | ||
10 | |||
11 | Scala offers concurrency built into the language. | ||
12 | So it may offer new solutions to WO developers... | ||
13 | |||
14 | === Can WebObjects be Programmed With Scala? === | ||
15 | |||
16 | Yes. It is very simple. | ||
17 | Scala compiles to java bytecode. Hence using it with WebObjects is fairly straightforward. | ||
18 | |||
19 | == How to Develop WebObjects With Scala == | ||
20 | |||
21 | 1. [[Install the Scala eclipse IDE>>http://www.scala-lang.org/node/94]] | ||
22 | 1. Add Scala support to your project | ||
23 | 11. Right-click your project in the WO Explorer | ||
24 | 11. In the context menu select Scala -> Add Scala Nature | ||
25 | 1. Convert or use ##.scala## instead of ##.java## source | ||
26 | |||
27 | {{note title="Note"}} | ||
28 | |||
29 | This is for Eclipse/WOLips developers | ||
30 | |||
31 | {{/note}} | ||
32 | |||
33 | == WO Scala Example == | ||
34 | |||
35 | {{attachments patterns=".*zip"}}{{/attachments}} |