Recent Posts - page 2
-
Java 17 – Sealed classes
Prior to Sealed Classes feature there were two ways a developer could prevent a class to be extended: by declaring the class as final where no one can extend this class. 2. by making the class package private where no… Read More ›
-
Execute around Aspect with @annotation pointcut in Spring Boot
Aspect oriented programming (AOP) is a programming model where we write independently executable code which adds additional behavior to the existing code without modifying the existing code. Wikipedia defines AOP as: In this article, I will show you how to… Read More ›
-
Book Review: Atomic Habits by James Clear
I recently finished reading the amazing book Atomic Habits by James Clear. This book is about tips and techniques which one can adopt to build habits that last. The book is centered on how one can make small changes in… Read More ›
-
Java 16 – Pattern matching for instanceof
We all have used instanceof check with a subsequent cast to the desired type and in this process, we are doing two operations: validating whether the object we have is of the desired type using instanceof when the validation is… Read More ›
-
Using ROWNUM to paginate the data in Oracle
In one of my previous posts, I showed you how to use ROWNUM with ORDER BY clause. Building on that in this post I will show you how you can paginate your results using ROWNUM in Oracle DB and how… Read More ›
-
Java 16 – Records and Constructor
In my previous post, I introduced you to the new construct called Records which was introduced in Java 16. In this post, I will go a bit deeper into how you can override the default constructor of a record which… Read More ›
-
Java 16 – Records
We all, Java programmers, have complained whenever we were forced to create a class or use maps just to hold some data whilst other newer languages provided some out-of-the-box data structure for the same. Our problem has been addressed by… Read More ›
-
Java 15 – Text blocks
Text blocks are all about writing multi-line strings in a clean and readable way. This was added as part of JEP 378 in Java 15. One can read the detailed information of the feature from the JEP details. In this… Read More ›
-
Difference between Function.andThen and Function.compose
There are two different ways to mix functions in Java: using andThen using compose It is important to understand the difference between the two. andThen: function1.andThen(function2) will first apply function1 to the input and the result of this will be… Read More ›
-
Book Review: Do Epic Shit
“Do Epic Shit” is a self-help book by Ankur Warikoo which was released on December 2021. This is an amazing book. Very easy to read. The author has been honest and has shared his experiences so that anyone treading the… Read More ›
Featured Categories
Java ›
-
Java 17 – Sealed classes
February 18, 2022
-
Java 16 – Pattern matching for instanceof
February 11, 2022
General ›
-
Working with LocalDate, LocalTime and LocalDateTime
September 27, 2018
-
Getting to know about java.nio.file.Path – 2
September 5, 2017
Books ›
-
Book Review: Rework
July 21, 2022
-
Book Review: Make Time
July 17, 2022