Archives by Tag 'scala'

JDK7 Tackles Java Verbosity

By rnaufal - Last updated: Tuesday, September 22, 2009

Interesting article showing some changes on the Java platform to address its verbosity, but keeping code readability safe.
I liked the new Collection’s literals syntax to create lists, sets and maps:
List powersOf2 = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024};
Map ages = {“John” : 35, “Mary” : 28, “Steve” : 42};
Although it [...]

Constructors in Scala

By rnaufal - Last updated: Wednesday, August 26, 2009

I just came across an interesting post by Stephan Schmidt about constructors in Scala.
It shows how to create constructors with immutable and mutable fields, how to have multiple constructors how to invoke super class constructors. I found it very handy and concise to create a constructor with a private immutable field:
class Foo(private val bar: Bar)

Using Scala to update LiveJournal tags – Part I

By rnaufal - Last updated: Saturday, May 23, 2009

Some days ago I started to use the Scala programming language to update my Livejournal tags using its XML-RPC protocol reference. First I had to check if some tags of mine were entered wrong, so I’ve done this Scala program to list all of them:
1:import org.apache.xmlrpc.client.XmlRpcClient;
2:import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
[...]

Twitter on Scala Interview

By rnaufal - Last updated: Monday, April 27, 2009

There is a nice interview with the Twitter development team on Artima about using Scala in production on Twitter code. The team talks about some issues and facilities regarding the chose of Scala to develop Twitter’s queueing system and how Scala affected the team’s programming style.
My personal highlights:
And Ruby, like many scripting languages, has trouble [...]

Is Java on a evolutionary dead end way?

By rnaufal - Last updated: Friday, January 11, 2008

Artima is running an article where Bruce Eckel talks about about Java’s objective on backwards compatibilities and the problem of combinatorial complexity when you combine a new feature in every possible way with the other language features already present.
It’s the combinatorial complexity that you get when you combine a new feature in every possible way [...]