Converting a Java class to Groovy
Today I tried to convert a couple a Java classes to Groovy. Groovy is just Java on steroids, I thought, so this should be pretty simple. Just change the file name extension and be happy. Alas! My...
View ArticleA Simple Class Parser
If you want to parse a java class, it is a clever idea to fetch a java grammar and let JavaCC do the work for you. However, I didn’t find a grammar for Java 7, so I decided to write my own parser. This...
View ArticleGroovy Rocks! Most of the Time :)
Let’s have a look at the JSF magician I presented a couple of days ago. Writing this program was a lot of fun. It felt like the Groovy designers had my JSF magician in mind when they invented the...
View ArticleA Funny Groovy Bug (and a Strange One)
Today I stumbled over a bug that probably can occur only in Groovy. Can you spot it? The first three lines are a nice example of how Groovy wants you to use hash maps. Groovy allows you to use the...
View ArticleJavaFX and GroovyFX: Two Frameworks You May Have Missed
Like most Java programmers I’ve gradually become a web developer during the last years. In a way, that’s strange: most projects don’t deal with the internet. It’s a pity, too. Browsers used to be...
View ArticleJavaFX and GroovyFX: One Program, Two Flavors
Tiles are popular. Not only are they ubiquitous in our modern smart phones, picturesque tiles are a part of portuguese and spanish culture since countless1 centuries. And my photography site...
View ArticleJava 8 – Catalyst for a Superior Language?
These days I’ve read two language-related stories at Lavalobby. The first story I read matched my own experience on the topic. It has also an refreshingly optimistic air. Obviously, the author believes...
View ArticleJava 8’s Optional Type, NullPointerExceptions and the Elvis Operator
Every Java programmer is maddened every once in a while by the notorious NullPointerException. Not only Java programmers, by the way. Probably every JVM programmer is suffering from the problem, and...
View ArticleYou Don’t Seriously Want To Write Your JUnit Test in Groovy, Do You?
Why – yes, I do! This week we have visitors. We invited two experienced consultants to do a quick review of our source codes. Of course, we are very convinced to write good source code. In this we are...
View ArticleGroovy’s Tiny O-R-Mapper
Do you like Hibernate or EclipseLink because of it’s simplicity? It’s true, JPA is very simple once you’ve got it up and running, but it’s not the most simple way to access a database. The easiest way...
View ArticleNewsflash: Hope for Groovy
Pivotal’s recent announcement to drop both Groovy and Grails shook the Groovy community. The entire Java community, actually. Can we afford to invest in an open source project run by a company?...
View ArticleNomin – Mapping Java Objects Without the Pain
Many best practices in the Java world involve mapping Java objects to other Java objects. More often than not, this is downright stupid. Both objects are more or less identical, but you have to write a...
View Article
More Pages to Explore .....