Until Java 7 there was no simple and effective way to generate random numbers concurrently. Here we show ThreadLocalRandom to generate random numbers in a thread-safe way.
Insertion sort in Clojure can be implemented in different ways. In this post we compare implementations with and without Clojure transients.
Quicksort is one of the fastest sorting algorithms. In this article we implement Quicksort in Java, describe how it works and its properties.
Graphs are fundamental data structure that help to solve many algorithmic problems. In this post we show different graph representations and their properties.
Java 8 regular expressions have been improved with names for capturing groups. In this post we show how to used them to improve Java code maintainability!
Composed Method Pattern is the most useful and practical pattern I use. At the same time it’s not known by many developers. It’s the foundation of maintainable code.
In Java 8 remove selected item from Collection? It can be done in at least two ways both of which we are going to implement here. Let’s code!
One way to prevent concurrent modifications from different Threads is to given them their own local data. Java ThreadLocal allows to do thread data separation.
In this post we show how to use look for useful information in Clojure REPL? You’ll learn how to find and display docs, loot at Clojure source code and display Javadocs.
How to make sure that Spring Framework artifacts have consistent versions in Maven? It turns out that its very easy to prevent library mismatch errors!