jamie street 368704 unsplash - RXJS ERROR HANDLING
Angular, Reactive

RXJS ERROR HANDLING 

Errors are first class citizens in reactive programming. The error flow is adopted as a valid case of all observables. This is an essential and great feature but also one of the less understood parts. In this post we explore some of the most common…

annie spratt 723013 unsplash - UPGRADING TO ANGULAR 7
Angular

UPGRADING TO ANGULAR 7 

Let’s begin with the basics. From Angular 6 upgrading Angular versions can be done with the cli. This makes life a lot easier: Rxjs Angular 7 uses RxJS v6.3 so update RxJS: Typescript Angular 7 supports Typescript v3.1 so here we go again: Other libraries…

daiga ellaby 154936 unsplash - ANGULAR VIEWCHILD
Angular

ANGULAR VIEWCHILD 

When you want to control a child component, directive or DOM element from its parent component, you can use the ViewChild decorator in Angular. ViewChild returns the first element that matches a give child component, directive or DOM element and updates it if the reference…

freestocks org 728031 unsplash - GIT CHERRYPICKING
Angular, Git, Java

GIT CHERRYPICKING 

Ever been in the situation where you want a change from another branch but not all? I did… and ended up merging everything and reverting all the things I didn’t need. Turns out git has a command for this! Git cherry-pick You can take any…

jordan harrison 1208586 unsplash - RXJS FLATTENING
Angular, Reactive

RXJS FLATTENING 

From functional programming we all know map and flatmap. With reactive programming just flattening is not enough information. We have to make a decision about what to do when either observable emits the next element of completes. We have the following choices: mergeMap — deciding not to…

erico marcelino 235177 unsplash - ANGULAR 6 TREE SHAKING
Angular

ANGULAR 6 TREE SHAKING 

Working in reasonably big companies for the last years I’ve come across big Angular projects. As you would expect these were modular projects consisting of a bunch of modules. One of the things I never took in consideration was ‘tree shaking’. Tree Shaking Tree shaking…

markus spiske 771011 unsplash - NPM PEER DEPENDENCIES
Angular

NPM PEER DEPENDENCIES 

Comming from the java world I realised npm resolves dependencies differently than for example maven. Maven demands one unique version of a dependency amongst who depend on it. This sometimes results in a so called ‘dependency hell’. NPM depencendy tree In contrast to maven, npm…