Archive for September 23, 2006

Groovy - write less code

I recently came across Scott Hickey’s article in IBM DeveloperWorks comparing writing code in Java and Groovy. Simply code written in Groovy has simplified syntax comparing to what we are used to. Hence is less noisy, easier to read and understand. Isn’t it great to focus on solving a problem than on typing curly brackets all the time? What I just realized is that we are boxed by our behaviour, we are get actually used to type the brackets, for loops with index, iterator. Type, type, type… And we think that’s the way software development should look like. Thank’s to good IDEs helping us to generate that noise we are not frustrated completely yet. In Java 5 we have got already some goodies like simplified loops, autoboxing, generics. That is a good change I believe. And I don’t care that generics can have bad influence on performance (see an article on TSS). Coming back to Groovy I will try to have a look how can I incorporate it to my current development behaviour. I’ve read an article about using Groovy for unit testing of java code. Sounds promising to me.

Popularity: 15% [?]

Comments

Close
E-mail It