3 ms·
The scala scripting is an oft-overlooked feature, and I think it's pretty great. You can compile your codebase into a jar, upload it to a server and link to it
by lgieron 13y ago
The scala scripting is an oft-overlooked feature, and I think it's pretty great. You can compile your codebase into a jar, upload it to a server and link to it from a script in Scala you're editing there in a console text editor. Advantages:
- no compilation required, while still maintaing static typing checks
- since the script is the same Scala language as your main codebase, you can copy/paste code snippets into script for increased productivity
From my experience, it's been great for one-off data processing jobs done on the server.
- eeperson 13y agoIn Scala 2.11 you will be able to use Scala as a standard Java scripting engine: http://docs.scala-lang.org/scala/2.11/ http://docs.scala-lang.org/scala/2.11/