Core Java
-
Constructor or setter?
It goes without saying that every object needs to be created before it can be used. It does not matter…
Read More » -
Learn about JDK9 Compact Strings (Video review Charlie Hunt)
JDK 9 introduces a new feature called Compact Strings. Given the ubiquity of Strings in Java programs I feel that…
Read More » -
JUnit 5 – Setup
In November 2015 the JUnit Lambda team presented their prototype. Since then the project rebranded itself as JUnit 5 and…
Read More » -
The Mute Design Pattern
Have you been writing a lot of code following the Mute-Design-Pattern™ lately? E.g. try { complex(); logic(); here(); } catch…
Read More » -
An Ingenious Workaround to Emulate Sum Types in Java
Before I move on with the actual article, I’d like to give credit to Daniel Dietrich, author of the awesome…
Read More » -
Object-Oriented approach to Code Generation
Code Generation is a common way to reduce the unhealthy load of boring tasks often put on us eager code…
Read More » -
Parsing Java 8 Streams Into SQL
When Java 8 was released and people began streaming over all kinds of stuff, it didn’t take long before they…
Read More » -
Streaming over Maps with Java 8
In this article I will show you how Speedment Open Source stream efficiently over standard Java maps, expanding the Stream…
Read More » -
Cleaner Responsibilities – Get rid of equals, compareTo and toString
Have you ever looked at the javadoc of the Object-class in Java? Probably. You tend to end up there every…
Read More »