“OpenJDK is the future of Java,” Rich Sharples told us earlier this week. So if this is the case (and we think it is!), you should get involved with OpenJDK as soon as possible. And if you’re interested in the continuation of JDK 8 after Oracle relinquishes their leadership, now’s the time to have a say in the development of JDK 8u.
It’s time to talk about Java 8 streams. Are they actually a sign of lazy coding? In this article, Java champion Lukas Eder explains why they are important and why you should filter first, map later.
The Java 8 release takes Java to a whole new level. Learning the new features is just the first step. The real question is how to make best use of them. You will learn how coding in Java 8 differs to previous Java versions, and how to avoid going too far with the new goodies.
In this article Michael Simons discusses how modern programming paradigms make software patterns not superfluous but easier to understand and less prone to error. He also shows how to make use of Java 8 Lambdas to create a very simple implementation of the factory pattern and a somewhat more complicated version of a builder pattern implementation.
Per Minborg, founder and CTO at the Speedment AB, reminisces about the old (Java) days when people were experimenting with Java and databases and paves the way for Speedment, the Java 8 Open Source project which can be used to extract Java code from existing database schemas without trouble and directly start coding applications.
A little while ago we introduced Jooby – a micro web framework for Java 8 inspired by express.js. In this article, Jooby creator Edgar Espina explains how to build a simple JSON RESTFUL web service with the framework.
Jooby is a (relatively) new micro web framework inspired by express.js, which in line with the slogan by its creator Edgar Espina “do more, more easily” emphasizes the strengths of Java and would like to iron out its weaknesses.
Is your organisation making the move to Java 8? If so, Lukas Eder has some helpful advice to share about migrating your code, plus a short list of cons of the “modern” approach compared to the classic method when looking at external vs. internal iterators.
Working between Java 7 and Java 8? Then you might be aware that the AutoCloseable type goes through a little change for the newest version of Java. Lukas Eder explains how the contract for AutoCloseable is now similar to the Iterable contract.
There has been a lot of talk about the speed of streams in Java 8, but as Alex Zhitnitsky shows, sticking to a more traditional Java programming style with iterators and for-each loops will significantly outperform new implementations in Java 8.
Take care with tuples, says Lukas Eder. Type hierarchies can be tricky so you need to watch out when defining them in several different languages and APIs. Different tuples may have common features, but not all of them are compatible.
After his recent benchmarking of Java 8 Streams, Nicolai Parlog is back to document suggestions from the community of other possible profiles. Parlog wants us all to remember that with Stream performance, numbers can lie.
Java performance is a hot topic at the moment and its Nicolai Parlog’s turn to get in on the action. He asks an important question of Java 8 Streams: can their performance really be that bad? Let’s get into investigating.
Lukas Eder is excited about functional programming in Java 8, which he believes is becoming much like the expressive power of SQL-style declarative programming. Here he looks at the imperative and functional approaches available in Java 8.