Book Review: Java by Comparison

Here is my review of the book Java by Comparison - Become a Java Craftsman in 70 Examples authored by Simon Harrer, Jörg Lenhard, and Linus Dietz.TLDR Version:As I was reading the book, I felt why this book didn't exist when I started my profession as a software…

IDE generated code - a good idea?

In my previous post I mentioned how pain acted as a trigger to positive action. In this post, let's analyse potential solutions to the problem I had mentioned in the above post and what can we learn from them.At the time of this incident, our team was using an…

Micronaut External Config

In one of the previous posts, I described how to have configurations per environment and why it a bad idea to build your jar for every environment. Also we saw how to read configuration values from property sources.Many times you might not be in a position to enumerate your…

Micronaut - A common mistake with the use of @Value

Micronaut provides io.micronaut.context.annotation.Value for injecting value from the property source into a variable. Spring framework also provides a similar annotation.Can you spot the mistake in the below code?package com.nareshak; import io.micronaut.context.annotation.Value; import io.micronaut.http.MediaType; import io.micronaut.…

Micronaut Environment Specific Configuration

In my previous post I described the anti-pattern of rebuilding your artifacts for every environment and explained why it is a bad idea. I also mentioned that modern frameworks support environment specific out of the box. In this post let's see this in action using Micronaut.I will be using…