Core Java
-
Prefix and Suffix Matches in Solr
Search engines are all about looking up strings. The user enters a query term that is then retrieved from the…
Read More » -
Spice up your test code with custom assertions
Inspired by the @tkaczanowski talk during GeeCON conference I decided to have a closer look at custom assertions with AssertJ…
Read More » -
Java 8 Friday: Better Exceptions
At Data Geekery, we love Java. And as we’re really into jOOQ’s fluent API and query DSL, we’re absolutely thrilled…
Read More » -
Why use SerialVersionUID inside Serializable class in Java
Serialization and SerialVersionUID is always remains a puzzle for many Java developers. I often see questions like what is this…
Read More » -
See Your Solr Cache Sizes: Eclipse Memory Analyzer
Solr uses different caches to prevent too much IO access and calculations during requests. When indexing doesn’t happen too frequently…
Read More » -
Writing Clean Tests – Beware of Magic
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
Java Singleton Design Pattern
Its one of the simplest design pattern in Java. If any one asks me which design pattern you are good…
Read More » -
How to find Prime Factors of Integer Numbers in Java – Factorization
One of the common homework/task in programming courses is about Prime Factorization. You are asked to write a program to find…
Read More » -
OutOfMemoryError on overprovisioned heap
Why am I getting the OutOfMemoryError when allocating a data structure that should happily fit within the heap I have…
Read More »