Author Archives: Paulo "JCranky" Siqueira

Scala Problem Number Six

From the Scala 99 Problems, lets face the problem number six: P06 (*) Find out whether a list is a palindrome. Example: scala> isPalindrome(List(1, 2, 3, 2, 1)) res0: Boolean = true The first thing I had to do was … Continue reading

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

The Anagram Puzzle in Scala

A few weeks ago, we had a coding dojo in Adaptworks. There, we decided to use Scala as the coding language, and the problem to be solved was the Anagram puzzle. Unfortunately we didn’t manage to solve the problem during … Continue reading

Posted in scala | Tagged , , , , , , , | 4 Comments

The Developers Conference 2011

From July 6 to 10 happened The Developers Conference 2011 down here in São Paulo. The other editions were really good and, better, this one topped all of them. It was a really fun and productive event. I had the … Continue reading

Posted in java | Tagged , , , , , , , , | 3 Comments

Scala Problem Number Five

From the Scala 99 Problems, the problem number five goes like this: P05 (*) Reverse a list. Example: scala> reverse(List(1, 1, 2, 3, 5, 8)) res0: List[Int] = List(8, 5, 3, 2, 1, 1) Starting with the obvious solution, using … Continue reading

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

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