Blog

Functions are first-class citizens in JavaScript

Functions are first-class citizens in JavaScript first class citizen entity/type : An entity that supports all operations other entities have. This means first-class citizens can be passed, returned & assigned etc. To simply put it this means that you... More

Creating Multiple Folders From a Bash Array

This snippet allows you to create a series of directories, that are a part of a regular bash array. It is useful if you have a number of directories to create and without using a loop. #!/bin/bash var="eins" var2="zwei" play_array=("$var" "$var2")... More

Adding Arbitrary Attributes To Python Class

You want to create a dummy class that stores arbitrary attributes and you want to access these attributes via . (dot) operator e.g. myClass.age. You can easily do that in Python. Although using a dictionary type would be more explicit and Pythonic 😉.... More

Generating infinite sequence of bytes set to ones

After trying to implement my own "one time pad (OTP)" file encryption. I ran into an issue that I needed large byte object sequence to write proper unit tests for encryption/decryption. For those who don't know, python has a special bytes object which... More

Allow Developers To Deploy Straight To Production

In times when continuous integration is a new fad there still exists legacy systems which are not suitable for this flexible way of applying changes. This means that your company will be stuck in the eternal purgatory of developers and DevOps working... More

Previous
3 of 6
Next