In the era of microservices and distributed applications, traditional session-based authentication often falls short. Enter JSON Web Tokens (JWT), a compact and self-contained mechanism for encoding user information. This article dives into the heart of JWTs, exploring their workings, benefits, and implementation with JavaScript and Java code examples. Anatomy of […]
My regular expressions list
At least once in your life as a developer you will need a regular expression to solve some kind of filter / search / query on strings. Whenever this happened, you probably turned to the internet. This is why I decided to compile a mini list with some of the […]
Template-driven VS Reactive forms in Angular
Building forms in Angular presents two distinct approaches: template-driven forms vs reactive forms. Choosing the right method depends on your project’s complexity, your team’s comfort level, and the desired level of control over form behavior. This article delves into the strengths and weaknesses of both approaches, equipping you to make […]
Scaling up with an Angular project: choosing the right strategy
As your Angular project grows, managing reusable components becomes crucial. This article explores four popular approaches: using a common industry library, a dedicated components library, modularizing within the project, and the single-module approach. Each solution offers unique benefits and trade-offs, guiding you towards the best fit for your specific needs. […]
Add external HTML pages inside components
We may need to insert static or dynamic HTML pages / fragments coming from outside our website. With this little trick we can make a “get” call for the HTML we need to show it in a <div> container. The fragment must not have unexpected HTML (such as style or […]