coding

Optimizing my blog

Recently, I optimized my blog for page speed and file size. I did this, because I came across the Mobile Website Speed Testing Tool and my blog did not have 100 points in every category. It wasn’t that bad though. My blog was above the 90 points margin. I still...

bye bye social media

I recently deleted all my social media accounts *gasp* , which were exactly two: facebook and twitter. But why? They consume too much time They provide little or no value for my live I can communicate with the people I care about through other software. Why do we have these...

Possible Frontend Architecture

This post is about how a frontend architecture could look like. The presented architecture is not the only way how to solve the problems in the frontend like loading time, data retrieval, etc. but it can be one possible way. The architecture In the architecture, the “backend” is behind an...

React-Redux Frontend Architecture

This post is about how we used React in combination with Redux in our project, to create a frontend architecture, in which the code we write is easy to test, maintain and extend. The categories of the architecture We divided the files in our project in seven categories: (Stateless) Components...

The importance of refactoring

Describing refactoring to a non-developer person can be tough. Especially when this person does not understand the implications of the absence of clean code or other code-quality improving techniques. If you try to explain code-quality improving techniques to non-developer persons, you might hear questions like “why haven’t you done it...

Loop over files - bash one line

It’s simple: for i in *; do echo $i; done If you want to replace a certain text in all files with something new, use this: for i in *; do sed -i 's/original/new/g' $i; done where original is the original text and new is the new text. If you...

How to wrap a javascript function

Recently I wanted to modify a project, to wrap a javascript function, so that I could extend the functionality of that function without breaking the project it was assigned to. After searching the web for a bit, I found this stackoverflow-post, which exactly fits my needs. Works perfectly and I...

Regex for relative file paths

Regular expressions can come in handy when you need to find strings. This Regual expression simply matches relative paths. It’s not perfect, but it gets the job done :) (([^\./\\:*?<>|"]*)(/[^\./\\:*?<>|"]*)*/([^\./\\:*?<>|"]*\.[^\./\\:*?<>|"]+)) I should mention, that this regex is meant for python and also the relative path has to have a file...

Empire State Building in X3D

Im Rahmen meines Computergrafik Labors musste ich mit meinem Kommilitonen ein 3D-Modell des Empire State Buildings modellieren. Das ganze war ein enormer Aufwand und ich möchte euch mein Modell nicht vorenthalten. X3D-Datei. Leider kann ich die Texturen nicht zur Verfügung stellen, da diese einem Copyright unterliegen.Ihr könnt euch die unteren...