Articles


Written by Per Minborg

BackgroundEvery morning when you wake up, you need to perform a set of tasks before you go to work or do something else you'd like. Have you ever thought of
Read Article
Written by Per Minborg

BackgroundSince Java was first created back in the 90's, developers have used Plain Ordinary Java Objects (or short "POJOs"). Now that Java 8 is released, we can have another view
Read Article
Written by Per Minborg

BackgroundVery often when you are writing a method, you create an object, work with it a bit and then return the object or something that depends on the newly created
Read Article
Written by Per Minborg

BackgroundA singleton is a class that is instantiated exactly one time and can be used to represent "global" or system wide components. Common usages of singletons include loggers, factories, window
Read Article
Written by Per Minborg

BackgroundMaps are used ubiquitously in almost all Java applications. There are several built-in implementations of the Map interface tailored for different purposes. All these Map implementations rely on calculating a
Read Article
Written by Per Minborg

BackgroundIllustration: Elis MinborgWhen I was a kid, I was taught that, in the Swedish language, one should write out numbers using their text representation in the range from zero to
Read Article
Written by Per Minborg

BackgroundIn the package java.util.concurrent there are numerous classes that enables concurrent access to various objects and data structures. However, there is a lack of a concurrent Set in the standard libraries.
Read Article
Written by Per Minborg

BackgroundN factorial (also denoted N!) means computing 1*2*3*...*N and is a classical problem used in computer science to illustrate different programming patterns. In this post I will show how one
Read Article
Written by Per Minborg

BackgroundDuke and Spire Locking in ObjectsBy using Immutable Objects, which are objects that can not be observed to change once they are created, you gain a number of advantages including
Read Article
Written by Per Minborg

PrefaceYou have, with a probability infinitely close to 1, made one or several errors when overriding basic Object methods like equals() and hashCode()! When I discovered a new class off
Read Article
Written by Per Minborg

BackgroundIn my previous post, I talked about creating objects using the Builder Pattern. I recommend that you read that article first, unless you are already familiar with the Builder Pattern.The
Read Article
Written by Per Minborg

Creating objects using the Builder PatternThere are several patterns you can use when you want to create objects. In this post we will elaborate on some of them and we
Read Article