Month: March 2025

How to create an Interceptor in Angular and Why?
Natan Ferreira
- 0
- 224
In Angular, an Interceptor is an feature that allows intercepting HTTP requests . This enables you to add logic such as: Hands on We can create an Interceptor with the following command. Now, let’s create an Interceptor to add JWT tokens. This is a real example of an Interceptor. We have a service that retrieves…
Read More
What is algorithm complexity?
Natan Ferreira
- 0
- 106
Algorithm complexity is a fundamental concept in computer science, used to measure the efficiency of an algorithm in terms of execution time and memory usage. By analyzing complexity, we can predict how an algorithm behaves as the input size increases, allowing us to choose more appropriate solutions for different problems. How do we measure it?…
Read More
How do @PostConstruct and @PreDestroy annotation work in java?
Natan Ferreira
- 0
- 163
Methods annotated with @PostConstruct and @PreDestroy are commonly used in the lifecycle of beans managed by the container, such as in frameworks like Spring or Quarkus. An example of their use is opening and closing database connections. If you want to know more about Bean management in Spring, don’t hesitate to read this post. @PostConstruct…
Read More
How do functional interfaces work in Java?
Natan Ferreira
- 0
- 205
Functional Interfaces are a fundamental concept in functional programming introduced in Java 8. They are interfaces that have exactly one abstract method, allowing the use of lambda expressions and method references to make the code more concise and readable. They can be used in Streams, for example, and promote code reuse. We can find several…
Read More