Core Java
-
Speed Up with Fast Java and File Serialization
Since the first version of Java, day-by-day many developers have been trying to achieve at least as good of performance…
Read More » -
Backreferences in Java Regular Expressions
Backreferences in Java Regular Expressions is another important feature provided by Java. To understand backreferences, we need to understand group…
Read More » -
Java 7 vs Groovy 2.1 Performance Comparison
I haven’t used Groovy for 2 years, since my last touch with Grails. I get stuck in (hard)core Enterprise Java,…
Read More » -
Pitfalls of Java Comparable interface
Java Comparable interface provides a way to do natural ordering for classes implementing the interface. Natural ordering makes sense for scalars and…
Read More » -
Throwing Exceptions – slow and ugly
This post is about a historical experience in conjunction with recently applied performance optimization techniques. Years ago I was swearing…
Read More » -
10 Subtle Best Practices when Coding Java
This is a list of 10 best practices that are more subtle than your average Josh Bloch Effective Java rule.…
Read More » -
Optional in Java 8 cheat sheet
java.util.Optional<T> in Java 8 is a poor cousin of scala.Option[T] and Data.Maybe in Haskell. But this doesn’t mean it’s not…
Read More » -
Simple and lightweight pool implementation
Object pools are containers which contain a specified amount of objects. When an object is taken from the pool, it…
Read More » -
5 Things You Didn’t Know About Synchronization in Java and Scala
Practically all server applications require some sort of synchronization between multiple threads. Most of the synchronization work is done for…
Read More »