Problem statement: you have an Enum and you want to ensure that the numeric values returned by ordinal are a certain way (perhaps this Enum is part of a communication protocol with an external system or perhaps it is written … Continue reading →
Devoxx UK returns to London in June and has an awesome lineup of speakers, sessions and activities to choose from. The initial program was recently announced and has a real international feel, with speakers attending from all over the world. They’ll … Continue reading →
Java 8 has been released! Some of the highlights of the release in no particular order: Lambda expressions and new API to make use of it (the streams API) New date-time API inspired by Joda Time Poject Nashorn (fast JS … Continue reading →
On a previous post there was a short discussion about what’s the best way to clean up memory mapped files and Philippe brought to my attention the following text from a bugreport: With regard to the “workaround”, described in the JDC comments, … Continue reading →
Today’s post will be short and sweet. I wanted to write a rant about how we’re permanently reinventing things in the software industry and how programmers prefer to rewrite things from scratch rather than take the time to learn an … Continue reading →
Memory mapped files are a good and often overlooked tool. I won’t go into the details here on how they work (use the force Google Luke!), but I will quickly summarize their advantages: lazy loading and write caching provided by … Continue reading →
From our mailing list: Explanations to common Java exceptions ArithmeticException – “You are trying to use your computer to solve a mathematical problem that you cannot solve yourself. Read up on your arithmetics and try again.” ArrayStoreException – “You have … Continue reading →
I’ve been reading the How to write one of the fastest expression evaluators in Java article (also published over at JCG) and thought to myself – there is an even faster way! Thus I whipped up a Caliper benchmark which … Continue reading →
We’re in the second year of running the Java Advent Calendar and we’re seeking contributions. What is the Java Advent Calendar you might ask? It’s an initiative to publish one article per day about something related to Java (if you … Continue reading →
SonarQube (previously Sonar) is a quality management platform aimed mainly at Java (although other programming languages are supported to a varying degree. Here are a couple of tips to get it working on legacy projects: There is an Ant runner … Continue reading →