The Composite design pattern has the intention to represent part-whole as your friends on social media or a tower, as in the picture below.
Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly .
Using a composite structure, we…
When do you need to connect things, one of the options is to build a bridge, and this pattern is an example of it in code time upfront of integrations.
Excerpt from GOF book,
When an abstraction can have one of several possible…
Ready to not use your local environment? This is the idea behind the GitPod “Spin up fresh, automated dev environments, for each task, in the cloud, in seconds.”
You can play into…
By default when I need to write a code to communicate with Repository I thought to use CrudRepository, but the JpaRepository also is an option, so should I review my bias?
To prevent working with production resources in a local/dev environment the use of profiles is highly important, in this article let’s see how Quarkus helps us to achieve the environment configuration.
Since Java 1.5 when the Generics was introduced, the Java developer life changed a lot, and changed in a good way.
In this article will handle Covariance(? extends T) and Contravariance(? super T) and will be splitted into definition, example, and conclusion.
Using the covariance is allowed to…
Working with a dev environment is kind of different from prod, and managing the changes should be too. To achieve the changes Liquibase is an option rather than Hibernate create-drop strategy.
To maintain all DB schema changes into one place, Liquibase has these reasons.
Write code is great, but sometimes is better generate code than type them. For this article I’ll present some options, such as Lombok and MapStruct.
As I said before, sometimes writing a repeated piece of code is not a good idea, since this is a DRY (Don’t Repeat Yourself).
Working with Lists is a common task in Java, but this task should be done carefully whether the unmodifiable or immutable is required.
This article covers the change inside the elements of the List in order to avoid problems, for instance: Where is the element nth? …