Skip to main content

Setup ANTLR in Java Project and Write Grammar for Parsing Boolean Algebra Expressions

· 2 min read
Vijay Patidar
Fullstack Software Engineer

ANTLR (Another Tool for Language Recognition) is a powerful parser generator used for reading, processing, and executing or translating structured text or binary files. In this post, you'll learn how to:

  • Set up ANTLR in a Java project using Gradle.
  • Write a grammar for parsing Boolean algebra expressions.
  • Generate lexer and parser code using the Gradle plugin.

Setup flyway migration with spring boot

· 2 min read
Vijay Patidar
Fullstack Software Engineer

Database migrations are essential for maintaining consistency and version control in applications. Flyway is a popular database migration tool that integrates seamlessly with Spring Boot. In this guide, we will set up Flyway in a Spring Boot application and configure it for different environments.


Step 1: Add Flyway Dependencies in Gradle

The first step is to update your build.gradle file to include the Flyway dependencies.

Publish Android App Bundle to Play Store Using GitHub Actions

· 3 min read
Vijay Patidar
Fullstack Software Engineer

Publishing your Android app bundle to the Google Play Store can be streamlined by automating the process with GitHub Actions. In this guide, we’ll walk you through the steps to set up a CI/CD pipeline that builds, signs, and uploads your app to the Play Store.


Step 1: Configure Gradle for Signing

The first step is to update your build.gradle.kts file to include the signing configuration. This setup ensures that the app is signed with the correct credentials during the build process.

How to Create Entity Classes for Relational Tables

· 4 min read
Vijay Patidar
Fullstack Software Engineer

How to Create Entity Classes for Relational Tables

When working with Java Persistence API (JPA), defining entity classes is a critical step to map relational database tables to Java objects. In this post, we’ll explore how to create entity classes for a relational schema, focusing on best practices and solving common challenges such as composite keys.

What is Spring Boot Starter

· 2 min read
Vijay Patidar
Fullstack Software Engineer

Introduction

Spring Boot starters are predefined templates or dependencies that simplify the process of setting up a Spring Boot application. They eliminate the need to manually define numerous dependencies, ensuring compatibility and reducing configuration effort.

Here’s a list of commonly used Spring Boot starters and their purposes:

What is Spring Framework

· 3 min read
Vijay Patidar
Fullstack Software Engineer

Spring Framework

The Spring Framework is a comprehensive and widely-used framework in the Java ecosystem for building enterprise-level applications. Its core feature is dependency injection (DI), which helps with the loose coupling of components, making applications easier to manage and test. Spring provides many modules for various tasks, like web development, data access, messaging, and more, making it highly modular and suitable for a variety of projects.

When to choose MySql vs PostgreSql relation databse

· 2 min read
Vijay Patidar
Fullstack Software Engineer

Choosing between MySQL and PostgreSQL depends on your project requirements, data complexity, and specific use cases. Here’s a breakdown of when to choose each:

When to Choose MySQL

  1. Simplicity and Ease of Use: Ideal for beginners or small applications where quick setup and ease of management are priorities.

Instrumenting Spring Boot Applications with OpenTelemetry (Without Java Agent)

· 3 min read
Vijay Patidar
Fullstack Software Engineer

Introduction

In modern distributed systems, observability is crucial for monitoring application performance and troubleshooting issues. OpenTelemetry (OTel) is a powerful tool for collecting telemetry data such as traces, metrics, and logs. In this guide, we'll walk through how to instrument a Spring Boot application with OpenTelemetry without using the Java agent, and how to export the telemetry data to Jaeger using Docker.

What Is Stream In java

· 3 min read
Vijay Patidar
Fullstack Software Engineer

Introduction

A sequence of elements in Java that supports several methods that can be pipelined to achieve a desired outcome is called a stream. Originally included in Java 8 as a component of the java.util.stream package, streams are a part of the Java Collections Framework. They are made to manipulate data declaratively, much like SQL does with information kept in tables.