Author: Natan Ferreira
What is Sonar?
- Natan Ferreira
- 0
- 36
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 MoreHow does work Deferrable Views in Angular 17 ?
- Natan Ferreira
- 0
- 50
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 MoreHow does work New Control Flow Syntax in Angular 17 ?
- Natan Ferreira
- 0
- 112
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 MoreHow does work Server-Side Rendering (SSR) in Angular 17 ?
- Natan Ferreira
- 0
- 162
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 MoreThe two Axes of Flexbox
- Natan Ferreira
- 0
- 23
Flexbox is widely used nowadays, as it is possible to create complex and flexible layouts in a simple way. Before Flexbox existed, it was more complex to create layouts. Introduction We have two directions: row and column. We can specify the direction using the flex-direction property. There are two axes: the main axis and the…
Read MoreHow to do a Parameterized Unit Test in Quarkus?
- Natan Ferreira
- 0
- 324
Parameterized unit tests are beneficial for applications as they simplify the process of writing tests, allowing us to run a single test multiple times with different parameters. Requirements I’m using JDK 17, Intellij and Quarkus Version 3.4 on the project. Practice I created this class: These notations represent validations applied to the fields. For instance,…
Read MoreWhat is Client-Side Rendering, Server-Side Rendering and Static Site Generator ? How does it work in Angular ?
- Natan Ferreira
- 0
- 46
The types of rendering are crucial in a system. First and foremost, we need to understand the client’s requirements, and then we can determine which rendering type is the better choice.All rendering types have their own set of advantages and disadvantages; let’s explore each of them. Requirements You can find more here: https://nodejs.org/en https://angular.io/cli Client-Side…
Read MoreHow does unit test work ? How to do unit test on Quarkus ?
- Natan Ferreira
- 2
- 222
Testing a system is very important to maintain quality. There are some types of tests. Closer to the base of the pyramid, less cost and time are required.Let’s focus on the base of the pyramid. Unit test serves to validate the smallest code units. Generally a system accesses some external service such as a database,…
Read More