Clean coding tips for Lambda and Streams in Java

Any fool can write code that a computer can understand. Good programmers write code that humans can understand. – Martin Fowler The intent of this blog post is to make sure that we are writing code which is readable, understandable, maintainable. A readable code helps its maintainer and results in lesser issues and bugs over … Continue reading Clean coding tips for Lambda and Streams in Java

A basic GraphQL API

This blog is a second blog in the GraphQL series. In the first blog, we have seen the changes which GraphQL has brought from the days of RESTful service. In this blog, we will see a working demo of a GraphQL service where we will cover things like Resolvers Queries Mutations GraphiQL These things will … Continue reading A basic GraphQL API

Bean Validations in Micronaut

One of the most important aspects of any application code is to ensure that we are having correct data before it can be processed or shared with any other system. This ensures that we are working with valid data and avoid any issues which can result due to data inconsistencies. Problem at hand We spend … Continue reading Bean Validations in Micronaut

Running sonarqube analysis as part of your Gradle build

Sonarqube provides a way to analyse our code and find code quality issues with static code analysis. Running Sonarqube helps a developer to write better code and so we must run sonar analysis as frequently as possible. However that is easier said than done. The reason for that is that in most organisations we have … Continue reading Running sonarqube analysis as part of your Gradle build

Garbage Collection In Java

Garbage collection is a way of collecting and discarding stale objects in JVM and releasing the memory so that it can be reused to store live objects. All Garbage collection implementations has mainly three passes MARK: Garbage collector marks the stale objects SWEEP: It then reclaims the memory allocated to the objects marked in the … Continue reading Garbage Collection In Java

Integration tests using Docker

Need for integration testing: For all our projects we generally create two types of tests Unit Tests Integration Tests Unit tests are comparatively simple as we validate a block of code which has some business logic. While doing so, we mock any external calls like external API, database read/updates, etc. This helps us to make … Continue reading Integration tests using Docker