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 lot of code to map object A to object B. Plus, you have to write the backward mapping, too. […]
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? Companies are sold and bought all the time, and the new owner may drop the previous owner’s pet projects without warning. That’s the […]
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 to access a database I know is SQLWindows (aka Centura), with Groovy a close second. Native Groovy, that […]
Why – yes, I do!
Sooner or later every Java programmer is maddened by the notorious NullPointerException. Not only Java programmers, by the way. Probably every JVM programmer is suffering from the problem, and many other languages know similar problems. What makes the NullPointerException so annoying is the fact is essentially a NotImplementedYetException in disguise.
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 in progress. The second article also had a lot of ideas matching my experience. Thing is, both articles contradict each other. While the […]
Tiles are popular. Picturesque tiles are a part of portuguese and spanish culture since countless1 centuries. Since a couple of years tiles are ubiquitous in our smart phones. My photography site 11pictures.com needed a fresh new design to cope with the always-increasing number of pictures. So what about displaying pictures as colorful azulejos? To do […]
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 dedicated tools for the internet, so it’s hard to meet the demands of a full-blown desktop application. It’s a real pain […]
Today I stumbled over a bug that probably can occur only in Groovy. Can you spot it?
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 Groovy language. It contains a lot of code that make Groovy shine. Or rather, it contains […]
One of my pet projects needs a description of every class in the workspace. It only needs the names of the variables and methods, so a few lines of Groovy code suffice to do the job. The source code shows how elegant and concise source code can be if you use a language that is […]
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 project was sparkled with red dots. There are subtle differences between the languages I did not notice before.