This just in: The Definitive Guide to Jython: Python for the Java Platform is finally available! Jython is an open source…
You may get an e-copy at a pretty low price. Check it out at http://www.artima.com/shop/programming_in_scalaHave fun!-Z
In case you missed it, the new release marks a important date for them. Besides few big features and bugs fixes added, this release will mark as the implementation reference of their official Programming in Scala book, which should be out in few weeks.Go try download and start the interactive shell…
Here I attached two scripts that might help you working with jar files.Have you tried to verify that a Class must exists in a lib directory that has few dozens jar files? For example I read from a forum that there is a ServerInfo.properties inside one of tomcat jar, so I run this:$ scala…
Hi,Here is a simple Scala script that prints or concatenates text files://file: cat.scalaimport java.io._val files = argsfor(f <- files){ val reader = new BufferedReader(new FileReader(f)) var ln: String = null while({ln = reader.readLine; ln != null}) println(ln)}Happy programming!-Z
For the longest time I wish Java support HEREDOC kind of string construct like in Perl and other. This seems to be extremely useful when you writing SQL statements, help usage, and other text block. Fortunately, this is supported under Scala. Here is a simple example:val sql = """select *from…
I am excited to announce the first stable release of sweet. There are great samples including database access out here: http://code.google.com/p/sweetscala/wiki/OnlineDemosAs mentioned before, Sweet is a web application framework…
Hello everyone,I have started a Scala web framework project at http://code.google.com/p/sweetscala. It's still young, but the distribution is fully functional, and it comes with scaffolding generator as well. There are online demos along with api…
I have been studying the Scala language for the last several months, and I found it very attractive. Not only it can run on JVM and use any Java library available, it can run with speed as close as Java itself! And yet the language is flexible and concise when needed to make a piece of code ease on…
I modified this Groovy and Grails Catalog Sample application to use JPA entity java classes instead of Groovy domain classes. I followed the steps in the InfoQ article Grails + EJB Domain Models Step-by-Step and I was really surprised at how easy it was !…