Uncategorized

Jenga Debugging

Jenga Debugging Photo by Valery Fedotov on Unsplash Have you ever played Jenga? It’s a child’s game, that’s still actually pretty enjoyable as an adult. It’s how some of us learned a few basics of engineering and physics before we could even sing the alphabet. I’m going to tell you about an unorthodox way of debugging …

Jenga Debugging Read More »

Fassade Pattern in NgRx

Dieser Artikel behandelt das Fassaden Pattern in NgRx. Der Autor setzt voraus, dass ein entsprechendes Grundwissen im Umgang mit NgRx vorhanden ist. Die Fassade entkoppelt NgRx von unserer Anwendung. Dabei werden Selektoren als Properties vom Typ Observable angeboten. Die Actions werden zu normalen Methoden. Eine Videoversion gibt es hier: https://youtu.be/K4dpVXuhm14 Theorie Die Fassade ist ein …

Fassade Pattern in NgRx Read More »

NgRx Facade Pattern

NgRx Facade Pattern This article covers the Facade pattern in NgRx. The reader must have a basic understanding of NgRx or a similar state management library. The Facade pattern decouples NgRx from the rest of our application. It does that by masking NgRx-actions as method calls and the selectors as properties of type Observable. In case …

NgRx Facade Pattern Read More »

Function calls inside template are dangerous!

The other day, one of my coworkers detected a strange behavior inside our application. When he added RouterLinkActive to a link, the application stopped rendering. However when the directive was removed, the application worked correctly. Instead of immediately reading the solution, I created a challenge inside AngularChallenges for those who want to try resolving and …

Function calls inside template are dangerous! Read More »

Modifiable Source of Optimized Images in Angular 16.2

Northern coastline of Mallorca, Spain — Photo by author Since the release of the NgOptimizedImage directive two major versions ago in Angular 14.2 (recently backported to version 13.4), front-end developers have been able to reuse Angular logic to render images in the browser performantly. This built-in directive addresses some frequently overlooked best practices in image rendering, such as …

Modifiable Source of Optimized Images in Angular 16.2 Read More »