Category: Introduction

Discover the world of IT

Kubernetes on pi script

In my previous post I made a guide, Kubernetes pi cluster which illustrated how one can setup Kubernetes on minimum two raspberry pi’s. However to prevent going though that post and all the steps manually every time a new raspberry pi is added to a cluster, I made a script to automate most of the…
Read more

Type Guards

A type guard offers a similar behavior known from “instanceOf” and “typeOf”, which are in fact typescripts build-in type guards. However, these are limited to certain scopes, limiting the instanceOf to only compare if the class is an instance of another class. Additionally, “typeOf” only can compare simple data types such as strings, numbers, booleans…
Read more

Reactive Properties

As a developer using angular you probably faced the fact that working with observables is indeed handy, when developing a reactive UI. The other day I stumble upon a great post ( that illustrated the use of Object.defineProperty, to make a function that allows for any property to be observed, with just a single line!  …
Read more

Factory Method a Design pattern

The factory method is a design pattern that are used to construct a method allowing one to create different objects that shares an interface, and is therefore found as an creational design pattern. That makes the pattern very scalable, allowing one to add layers of abstraction to your code, and create objects that serves different…
Read more

Access the terminal in your Electron/Angular application.

When creating an desktop application using Electron there might be situations where you need to call systems functions. I have just experienced this while working on a custom git client, and found a easy way to access the terminal as the electron application is allowed to carry out these tasks. In the index.ts found in…
Read more