Articles


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