Java
-
Using serialization to find dirty fields in an object
Say you are developing a framework to auto-save objects into a database. You need to detect changes made between two…
Read More » -
Why we shouldn’t use more threads than we need to
Overview There is a common argument that because we have lots of cores, and will have even more in the…
Read More » -
Lambdas for Fluent and Stable APIs
A few weeks ago I wrote an introduction on Java 8 lambdas. In this introduction I explained what a lambda…
Read More » -
Throttling Task Submission with a BlockingExecutor
The JDK’s java.util.concurrent.ThreadPoolExecutor allows you to submit tasks to a thread pool and uses a BlockingQueue to hold submitted tasks.…
Read More » -
Simple CRUD using Servlet 3.0, Redis/Jedis and CDI – Part 2
In this post we will focus on CDI and Servlet 3.0. You can see part 1 here. Let’s start with…
Read More » -
Too Many Parameters in Java Methods, Part 8: Tooling
The first seven posts of my series of dealing with too many parameters expected in Java methods focused on alternative…
Read More » -
Announcing EAXY: Making XML easier in Java
XML libraries in Java is a minefield. The amount of code required to manipulate and read XML is staggering, the…
Read More » -
Hibernate Facts: Equals and HashCode
Every Java object inherits the equals and hashCode methods, yet they are useful only for Value objects, being of no…
Read More » -
Hibernate Facts: Multi level fetching
It’s quite common to retrieve a root entity along with its children associations on multiple levels. In our example we…
Read More »