Category Archives: java

Gr8Conf – Copenaghen

Gr8Conf is a conference headed in Copenaghen about gr8 technologies: groovy, grails, griffon, gradle and so on. The conference is organized by Javagruppen, the Danish Java User Group.

Nothing particular to say about the conference, everything was prepared very well and the overall quality was high. Behind the scene a lot of VIP and Stars in the Groovy panorama.

I was there because interested to this technologies but in particular because the Keynote presented a success story on Groovy and the enterprise, basically Philippe Delebarre and Raffaele Cigni gave a talk about wat was done at the European Patent Office.
Summarizing, after two failing tentatives: the first using an existing proprietary product and the second with opensource ESB, the project found in Groovy a very good candidate for the success; in addition, the keys were: strong separation between businnes and development, adopting of agile methodologies (SCRUM and XP), contributed for the success.

The conference at the end went very well, it was nice to meet a lot of people interested in this cool technologies and we had also the opportunity to have 4 hours of hacking in order to contribute to one of this projects.

At the end I went home with some new ideas and new starting point, where I can start working on :) see you next year

About these ads

Road to FOSDEM 2010

As most of you already know (if you don’t, never mind, I will forgive you :D ), I’m going to give a lightning talk in the Free Java Dev room at FOSDEM about Groovy. The title will be “Groovy: the cool side of java” and basically it will be an hand-on speech. No slide, just code. I will start from a simple Java code and I will rewrite it in Groovy. During the demo/live I will give some basics explanation about how is groovy working and we will see the power and the value that Groovy add at the top of JVM compared with a static language like Java.

Here the code that I wrote:

import java.util.ArrayList;
import java.util.List;
import java.util.Collections;

class TestJava{
   public static void main(String[] args) {
      new DoStuffs().doIt();
   }
}

class DoStuffs{

   public void doIt(){

   List al = new ArrayList();

   System.out.println("* Initial size of"+al.getClass()+" :  " + al.size() + " with elements "+al);

   al.add("this");
   al.add("is");
   al.add("just");
   al.add("test");

   System.out.println("* Final size of"+al.getClass()+" :  " + al.size() + " with elements "+al);
   System.out.println("* Let's add some stuffs");

   al.add(2,"a");
   al.add(3,"cool");

   System.out.println("* Done "+al);
   System.out.println("");

   System.out.println("- Before ordering"+al);
   Collections.sort(al);
   System.out.println("- After ordering "+al);
   System.out.println("");

   List al2 = al.subList(2,4);

   System.out.println("- Sublisting "+al2);
   System.out.println("");

   if(al.size() > 0){
      for (int i=0; i< al.size(); i++) {
         al.set(i, al.get(i)+" \\o/ ");
      }

      System.out.println("Let's show the element in the reverse order: ");
      for (int i=al.size()-1; i>=0; i--){
         System.out.println("<"+i+"> "+al.get(i));
      }
   }

   if(al != null){
      List sub = new ArrayList();

      for (int i=0; i< al.size(); i++) {
         String el = (String) al.get(i);
         if(el.contains("t")) {
            sub.add(al.get(i));
         }
      }
      System.out.println("- After grep "+ sub);
    }
  }
}

Grails 1.0.4

I finally packaged grails 1.0.4 on RPM. This minor update fix some bugs and maintain compatibility with previous version. The package has been processed with mock and rpmlint.

You may find RPM & SRPM here:

Please report any error you may find on it.