To talk about lambda functions and functional programming we must first talk about functional interfaces. A functional interface is an interface with one and only one abstract method. They have a special relationship with lambda expressions.From Java 8 we can find many functional interfaces in java.util.function package. A functional interface […]
BE based
In the BE based category, you’ll delve into the hidden world behind the scenes, where code dictates what users experience and interact with. Here, efficiency reigns supreme. Swift data processing and information transfer are the hallmarks of a stellar BE. To conquer this realm, we’ll equip you with essential tools like mapping and polymorphism, master the art of error handling, and build robust security measures. Whether you’re a seasoned architect or a curious beginner, this is your gateway to unlocking the power of backend development. Buckle up and get ready to explore the magic that happens before a user sees a single line of code!
Spring Boot model mapper: a powerful tool for object mapping
Today we will see how to implement a ModelMapper that allows us, for example, to transform an object with many properties into a smaller object with fewer properties. This transformation can be useful when we need leaner objects, perhaps in a list, or when we want to expose only some […]
Java Streams
Java streams are sequences of data elements that can be processed with operations. Streams consist of 3 parts: a source, zero or more intermediate operations, and a terminal operation.In the meanwhile there is a data in pipe, another data is waiting its turn. For instance, for a data in terminal […]
Java generic types
Let’s talk about the Java generic types. Most of the time, we add generics to make lists type-safe.We have pre-java 5 lists without generics that can get all known object’s types and when you get an object out of it we don’t know its type. When we use generics we […]
Tips: rest API POST content types
If we need to POST an object with validated field, we can send it from our FE (Angular, React, etc…) application with 2 main content types: JSON or “form encoded”.Pay attenction to not use the @RequestBody annotation if you want to send those datas in the second one type.The application […]