React useLayoutEffect vs. useEffect HooksLet's explore React’s useEffect and useLayoutEffect Hooks, such as how they handle heavy computations and inconsistent visual changes What is the useEffect Hook? The useEffect Hook is a powerful tool in React that helps developers manage side effects...May 1, 2024·2 min read
@Transactional annotation in Spring Boot@Transactional annotation is used to mark a method or a class as transactional. Any database operations performed within the marked method or class will be executed within a transaction. If the transaction is successful, the changes will be committe...Apr 14, 2024·4 min read
Pagination and Sorting using Spring Data JPAPagination is often helpful when we have a large dataset and we want to present it to the user in smaller chunks. Also, we often need to sort that data by some criteria while paging. Initial Setup : A Entity class that defines our table is required. ...Apr 13, 2024·2 min read
Factory Design PatternThe Factory Pattern is a powerful design pattern that simplifies object creation, enhances code organization, and promotes maintainability. By abstracting the creation process and delegating it to subclasses or specialized factories, it enables flexi...Apr 10, 2024·2 min read
Records in JavaRecords were first introduced in Java 14. What is Java Records? Records in Java are a concise way to define immutable classes. They focus on data storage and offer: Automatic boilerplate code: The compiler generates getters, equals, hashCode, and to...Apr 9, 2024·2 min read
Builder Design PatternThere are several design patterns and they have their intent and applicability. Like - Factory Method, Abstract Factory Method, Builder, Singleton, Prototype. Why Builder Design Pattern? A Builder Pattern is a Creational Design Pattern that lets you ...Apr 8, 2024·2 min read
Google Login with NextAuth.jsInstall NextAuth yarn add next-auth npm install next-auth Version "next": "14.1.4", "next-auth": "^4.24.7" Implementation Let's start with Providers, For Google Login We need Google Provider (https://next-auth.js.org/providers/google) im...Mar 26, 2024·3 min read