Tag Archives: java

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 , , | 1 Comment

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

Interview questions: verify the braces

This is one of the easier coding tasks, but you still can meet it in some preliminary tech screening. The problem looks like this: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the … Continue reading

Posted in interviews, java, Programming, Uncategorized | Tagged , , , | 4 Comments

Cover your bases, or How to play the tests

Writing tests is an important part of a developer’s job, however, it can be boring. Especially if you are not a TDD fan and leave the tests for after the code is done, so that you have to write a … Continue reading

Posted in java | Tagged , , | Leave a comment

There’s something about… ThreadPoolExecutor

There’s definitely a lot to say about Executors in Java and ThreadPoolExecutor as a particular case, but what I recently ran into was a simple issue. An application gets a large stream of data from source to destination; it does so concurrently so as to speed up the process. Problem was, when I added the parallelism, the application started running out of memory very soon. Continue reading

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