Quantcast
Channel: Groovy – Beyond Java
Browsing all 12 articles
Browse latest View live

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 Article



A 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 Article

Groovy 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 Article

A 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 Article

JavaFX 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 Article


JavaFX 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 Article

Java 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 Article

Java 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 Article


You 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 Article


Groovy’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 Article

Newsflash: 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 Article

Nomin – 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
Browsing all 12 articles
Browse latest View live




Latest Images