Author: Natan Ferreira
What is Connection Pool?
Natan Ferreira- 0
- 592
Connection Pool is very important for improving the response time of applications. To discuss connection pool, it’s important to understand how database connections work in an application. Let’s use the example of a web application, an API. Without Connection Pool A request was made to the application to fetch some information, and in this example,…
Read More
How to use Qualifier in Quarkus?
Natan Ferreira- 0
- 2172
Imagine the following scenario where there are multiple implementations for the same interface, and when using dependency injection, the software needs to understand which implementation to use. Let’s illustrate with an example to understand what the problem is and how to solve it. Website Diagram: https://refactoring.guru/ In the example, we will have a delivery system that…
Read More
What is Dependency Injection?
Natan Ferreira- 0
- 322
To understand, I believe the best way is through an example. Let’s take a look at a simple delivery system. It’s not a complete system; it’s something didactic and simple to illustrate. Website Diagram: https://refactoring.guru/ In the example, we will have a delivery system that can be done by truck or ship, where there is…
Read More
How to create a Custom Annotation in Quarkus Framework?
Natan Ferreira- 0
- 2647
It’s important to perform validations in the system. There are dependencies available for this with a lot of ready-made solutions. For example, in the case of Quarkus, we can use Hibernate Validator, which provides us with some annotations to solve common problems. However, if it’s necessary to perform a validation for which there is no…
Read More
What is Data Binding in Angular?
Natan Ferreira- 0
- 392
It’s a way of communication between TypeScript code and HTML template. Let’s see an example below. I created a component called “user”. We have a variable that stores the value of the “username” and a method that resets this value, it’s a method triggered by a click event in the HTML template. In the HTML…
Read More
How does the Set interface work in Java?
Natan Ferreira- 0
- 621
The Set interface inherits from the Collection interface. There are several implementations of the Set interface, such as HashSet, LinkedHashSet, and TreeSet, each with its own characteristics. Unlike the List interface, we cannot access an element by index in a Set, but it is possible to iterate over the elements. We will see some usage…
Read More
What is Sonar?
Natan Ferreira- 0
- 557
It’s a code analysis tool that helps in writing clean and secure code. Writing clean and secure code is a challenge. While manual code reviews are an option, leveraging a code analysis tool like Sonar is an excellent idea. This allows us to maintain clean and secure code, gaining several advantages: Some companies that use…
Read More
How does work Deferrable Views in Angular 17 ?
Natan Ferreira- 0
- 456
In previous versions of Angular, to use lazy loading it is necessary to specify modules in the routes using loadChildren.This behavior can be observed in the documentation itself. Below is code taken from the documentation. In the new version of Angular 17 we can use Deferrable Views, so we can do lazy loading. Practice Let’s…
Read More
How does work New Control Flow Syntax in Angular 17 ?
Natan Ferreira- 0
- 608
Angular 17 has undergone significant modernization, introducing new syntax, and features, and achieving better performance. Notably, they made substantial transformations. In this post, we will focus on New Control Flow Syntax. The Angular 17 introduced the @if, @for, and @switch syntax. Let’s explore each one. @if block conditionally The @if block conditionally displays its content when its condition expression…
Read More
How does work Server-Side Rendering (SSR) in Angular 17 ?
Natan Ferreira- 0
- 745
Angular 17 has undergone significant modernization, introducing new syntax, and features, and achieving better performance. Notably, they made substantial transformations. In this post, we will focus on Server-Side Rendering (SSR). SSR Now, when creating a project, there’s a straightforward option to enable SSR. To create a new project with SSR, run: To add to an…
Read More