Blog

Discover the world of IT

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 (Craftsmen.nl) 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

Setup your monorepo

Setup Environment Before the actual repo can be setup make sure that the environment you are using has NodeJS, Yarn and a global Angular installed. Otherwise, below is a small guide for you who is just starting out. Installing NodeJS NodeJS is your JavaScript runtime that allows you to execute and run application written using…
Read more

Introducing a monorepo for desk and cloud using nrwl

My master thesis provided a process to follow to migrate a desktop application to a cloud based system. With the possibility of using the cloud enabled code in the cloud as well as on the desktop. When the first wrote my thesis it was to develop this working process to migrate an application called the…
Read more

Hello world!

Welcome to the blog. This is the first post out of many and with time more posts will be written. The theme for this blog is learning by teaching, and the posts on this blog are meant to teach some of the fundamentals for a computer engineers to better learn some of the basics. Additionally,…
Read more