Tag Archives: scala

About nulls and System Properties in Scala

In Scala, it is usually a good idea to avoid nulls in your code. Instead of that, it is recommended that you use the Option class. This is how it works: if the value you are working with is null, … Continue reading

Posted in java, scala | Tagged , , , , , , , | 1 Comment

Migrating a java project to scala

Hi everybody! This time I wanted to bring something different about scala – so I decided to migrate a java project to this language. The chosen one is an open source test framework for the Web Objects framework (sorry for … Continue reading

Posted in java, scala | Tagged , , , , , , | Leave a comment

Scala Problem Number Four

Lets solve now the problem number four, from the Scala 99 Problems. This one goes as follows: P04 (*) Find the number of elements of a list. Example: scala> length(List(1, 1, 2, 3, 5, 8)) res0: Int = 6 Lets … Continue reading

Posted in scala | Tagged , , , , , , | Leave a comment

Just Java 2011

Hi! Its been a long time since I last posted about an event. So, to recover from the sadness, lets talk about Just Java 2011, a Java event that happened this last weekend here in São Paulo. The event consisted … Continue reading

Posted in java, scala | Tagged , , , , , , , | Leave a comment

Scala Problem Number Three

I almost forgot I started this ‘series’… Sorry! Now, with some time at hand, lets look at the problem number three, from the Scala 99 Problems. Like problem number one and two, this one is about list manipulations. It says: … Continue reading

Posted in scala | Tagged , , | Leave a comment

Scala at the guardian uk

Hi! In the news this last week, there was some information regarding the usage of Scala by The Guardian, a UK newspaper, and one of the biggest on the planet. I was aware that they were using Scala internally, but … Continue reading

Posted in scala | Tagged , , , , , , , | 2 Comments

Matching a range of numbers in Scala

Hi everybody! Yesterday I did a presentation about Scala at Globalcode. It was very nice, thank you all who attended! Now, one of the things I liked the most was the final part when people started making questions. I must … Continue reading

Posted in scala | Tagged , , , , , , | 1 Comment

sbt and maven

A few months ago I talked about my first impressions about sbt (simple build tool) here. My conclusion at the time was that NetBeans + Maven combination would suit me better. This changed a little bit, so I’m revisiting this … Continue reading

Posted in scala | Tagged , , , , , , | Leave a comment

Intro stuff on Scala

Hi! This is a quick post to share two introductory materials about Scala. The first one is a video with a presentation done by Martin Odersky, creator of the Scala language. Great one, really worth watching: http://www.youtube.com/watch?v=zqFryHC018k The second is … Continue reading

Posted in scala | Tagged , , , , , , | 3 Comments

Scala Introduction at Globalcode

Just a quick update. Wednesday next week I’ll be doing a Scala Introduction presentation at Globacode, down here in São Paulo, Brazil (in portuguese, of course :P). If you are in the area, come and join us 🙂 More information … Continue reading

Posted in scala | Tagged , , | Leave a comment