Year: 2023

Angular Subjects: See how to efficiently use them by implementing an intermediate service for data sharing between components

Angular Subjects: See how to efficiently use them by implementing an intermediate service for data sharing between components

Using a shared service to exchange data between 2 unrelated components is a quite used practice. Here, we will go coding in a step-by-step manner, to see how we can use the Subject’s flavors and avoid some commonly faced pitfalls.

Spring: Avoid Circular Dependency error of your @Component(s)
| |

Spring: Avoid Circular Dependency error of your @Component(s)

A case-study using a Custom implementation of the “weird” UsernamePasswordAuthenticationFilter, as @Component. This is actually the case when an auto-created bean (e.g.: an AuthenticationManager instance in a @Configuration annotated class) is required in a @Component annotated class (e.g.: a custom filter extending the UsernamePasswordAuthenticationFilter filter), and then, the bean of the @Component custom filter class is required in the @Configuration class.

No other place to go for your properties and values in Spring
| |

No other place to go for your properties and values in Spring

Spring Boot: @Value, @ConfigurationProperties, Environment API, and other, not-that-easy to be distinguished goodies.

Do you know @Value annotation in Spring/Spring Boot framework? Well, maybe. However, this post aims to be your one-stop shop, when you are wrangling with the mess of externally defined values, for properties and messages. And not only for your bean-managed classes.

wxWidgets with C++ on Linux
| |

wxWidgets with C++ on Linux

In this post, we will take the steps of installing and starting using wxWidgets libraries. Actually, we will take the source code of the officially provided “Hello World” program and will go step-by-step through it. Finally, as a ‘bonus’ we will see how we can set up VS Code with the minimum necessary settings for starting working with C++ and wxWidgets.