In this article we present practical Bean Validation Unit Testing using JUnit. Testing this part is very simple, yet often neglected by many developers. Let’s fix that!
Continue reading Bean Validation Unit Testingfarenda
In this post we show Java Bean Validation example! Bean Validation is fantastic and flexible library that can be used in JEE and JSE programs to verify data!
Continue reading Java Bean Validation examplejava.lang.InterruptedException is thrown when a Thread blocked in Object.wait(), Thread.join(), or Thread.sleep() is interrupted. Here we’ll look at these cases.
Continue reading java.lang.InterruptedExceptionjava.lang.IllegalMonitorStateException form Object’s notify/wait methods indicates basic synchronization issue. In this post we’ll show the reason and how to fix it!
Continue reading Java IllegalMonitorStateExceptionSingle Responsibility Principle (SRP) is the most important of SOLID software design principles. In this post we explain it and show how to apply!
Continue reading Single Responsibility Principle explainedIn this post we’re going to implement calculation of Greatest Common Divisor GCD in Clojure using Euclidean algorithm for two and more numbers.
Continue reading GCD in Clojure using Euclidean algorithmIn this post we show how to implement GCD in Java using Euclidean Algorithm. GCD is known as Greatest Common Divisor/Factor/Measure, Highest Common Divisor/Factor.
Continue reading GCD in Java using Euclidean AlgorithmWe show how to remove duplicates from List in Java. Choose implementation depending on circumstances and with expected performance.
Continue reading Remove duplicates from List in JavaClojure transients is a great way to optimize performance sensitive code without leaving familiar Clojure world. In this post we show how to use them to boost performance.
Continue reading Clojure transients – fast mutations in persistent worldUntil 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.
Continue reading Generate random numbers concurrently – ThreadLocalRandom