50 Lines of Code

My ramblings on Software Engineering, Open Source and Software Quality

The latest

Newest articles

Bits and bytes in JavaScript

If you want to work with binary data in JavaScript, this article will give you an overview of working with bits and bytes in JavaScript. Diving into bit-wise operations and their uses and how to work with the pixel data from images to filter colours, the basics of binary data and bitwise operations are the goal of the exploration in this article. Click here to read more!

JavaScript in parallel: Web Workers, Transferrable Objects and SharedArrayBuffers

JavaScript is single-threaded, which means that long-running tasks can make our web application unresponsive. Luckily, we have Web Workers as a remedy for this - but they do require some thought on how to divide a task and how to avoid a hefty memory cost when data is copied.
This article shows how to use Web Workers and transferrable objects and a new parallel primitive: The SharedArrayBuffer. Click here to read more!

Understanding different number systems

We are all familiar with the decimal system: ten symbols (0-9) combined in long rows form our way of expressing numbers. But nothing about that is a "natural" quality or necessity. Sometimes it is more useful to use other systems, such as binary and hexadecimal to express numbers.
Unfortunately, converting them between the different number systems seems tricky if not impermeable at first. Let me try to shine some light on it with this article!
Click here to read more!

HTML, DOM and JavaScript unraveled

Today, the different web technologies may be a little too much to take in at first and it won't get easier as things such as the Shadow DOM is added and frameworks and libraries may bring a Virtual DOM along. So let's dive right in an have a look at the different bits and pieces that are at play here.
Click here to read more!

The overwhelming web

There's a wave of fatigues among web developers: Framework fatigue, JavaScript fatigue, Tool fatigue - where does that come from? And: Is being a beginner in web development really harder than back in The Old Days™? I don't think so and the fatigue might be a warning indicator...
Click here to read more!

The greatest

Top five articles of all time

Easy scaling with Docker, HAProxy and confd

Forrest is a very small shell script that binds together etcd and docker to allow easy scaling - for example with the combination of etcd + confd + HAProxy + Docker you can quickly and easily spin up a new web server instance and hook it into your load balancer.
Find out more