SVP - Back on track
Now that the Silicon Valley Patterns Group is done reviewing two upcoming books (one on agile, the other on marketing research techniques), we can go back and discuss languages again.
There was some debate around what the next language should be; ML, Haskell, Smalltalk, and others I forgot. We settled for Javascript and its Object Model, which is prototype-based instead or the more typical Class-based.
The recommended command-line interpreters are Rhino and SpiderMonkey. I’m going with Rhino, and here’s how to set it up in your environment:
- Download Rhino
- Unzip it some place convenient
- Navigate to that directory and create a “my-examples” directory (or something like that)
- Add a hello.js file, containing print("Hello world");
- From the rhino directory, run this:
java -cp js.jar org.mozilla.javascript.tools.shell.Main my-examples/hello.js
- To run the interactive interpreter, just use
java -cp js.jar org.mozilla.javascript.tools.shell.Main
- Then use quit() to exit
Dasit.
