Category Archives: java

Spring State Machine: what is it and do you need it?

State machine is a model of computation based on the finite states, as Wikipedia very obligingly says. Usually there are workflows to go with the states, meaning that you can’t just go from any state to any other state: there’re … Continue reading

Posted in java | Tagged , | Leave a comment

Local type inference in Java 10, or If it quacks like a duck

Quite recently, Oracle adopted a new strategy of releasing a new language version every six months. The strategy assumes that only every 3rd version will have long-term support, or LTS. Quick notes about it: Current version that has LTS is … Continue reading

Posted in IntelliJ, java, Uncategorized | Tagged , | Leave a comment

Lombok, AutoValue and Immutables, or How to write less and better code returns

In the previous post about Lombok library, I have described a library that helps to deal with boilerplate code in Java (and yes I know that these problems are already solved in Kotlin, but this is real life and we can’t just all sit and rewrite every existing project once a newer or a simpler language appears). But as many things in life, project Lombok has its alternatives. Let’s give them a chance as well. Continue reading

Posted in java, Programming | Tagged , , , | Leave a comment

How to write less and better code, or Project Lombok

I have long intended to write about Project Lombok, so much so that I am probably doing it when every self-respecting Java developer has already heard about it. Nevertheless, it is worth mentioning, if only to remind myself that one should not hesitate to try performance-enhancing tools and see if they fit, and Lombok is certainly enhancing performance of a Java-coder by allowing to simultaneously write less code and have better quality code. Continue reading

Posted in IntelliJ, java, Libraries, Programming, Uncategorized | Tagged , , | 2 Comments

Common libraries in Java and where to find them

There’s a lot of utility Java libraries that many projects use as a matter of fact. However, some developers still either remain blissfully unaware that they exists, or “do not want to include too many unnecessary dependencies”, or just don’t … Continue reading

Posted in java, Uncategorized | Tagged | Leave a comment

Call on me, or Asynchronous REST

This article is a very simple example of a working asynchronous REST application, made with Spring Boot + Java 8. Spring Boot makes developing web applications almost ridiculously easy, but to simplify the task even more, I took an example … Continue reading

Posted in java, Programming | Tagged , , | Leave a comment

Spring Retry, because Winter is coming

OK, this is actually not about the winter, which as we all know has already come. It is about Spring Retry, a small Spring Framework library that allows us to add retry functionality to any task that should be retryable. Continue reading

Posted in java, Programming, Uncategorized | Tagged , , | Leave a comment