DO NOT BE AFRAID OF USING VAR, use it wisely, use it to reduce verbosity, make code readable and enforce other best practices in naming. Instead of prohibiting its use, let’s use correctly.
Continue readingCategory: Java
Design Patterns in Modern Java
Let’s review some of the design or programming patterns we can use in our code taking advantage of the Modern Java.
Continue readingSpring Framework 6 and Spring Boot 3 Released
A new generation of Spring Framework has been released, after 5 years with Spring Framework 5.x, in November 2022, Spring Framework 6 has been released. […]
Continue readingJava – Local variable Type Inference
Let’s review some considerations when using the Local variable type inference Java. It basically allows the developer to use the word var instead of the type when declaring local variables (into methods), the compiler is able to infer the type from the right side of the assignment.
Continue readingMicroProfile overview
MicroProfile is an open-source initiative managed by the Eclipse Foundation. MicroProfile optimizes Enterprise Java for micro-services, providing a lot of cloud native features
Continue readingTry Catch Block in Java
In Java, the try/catch block is the alternative to handle exceptions properly and avoid the application to crash. It has useful features like multi check, finally or try-with-resources statements.
Continue readingPKCS 11 Provider across multiple Java versions
A cross version approach to create SunPKCS11 providers to interact with smart cards. Supports version Java 5 to Java 18 at this moment.
Continue readingJDBI and the Specification Pattern
JDBI is a library to access to relation data in Java, it doesn’t provide support for the Specification Pattern, but with some classes and code we can implement it and use it.
Continue readingHow to get the current directory path of a JAR in Java
Let’s learn about different approaches and concerns when we want to find the current directory where a JAR file is running….
Continue readingSpring Data JPA and the Specification Pattern
Spring Data JPA provides support to the Specification pattern that will help us to reduce the amount of methods in our repository improving the readability and maintainability of the code.
Continue reading