Daniel Rotter Web Developer

Applying design patterns: The builder and factory pattern in a DI context

tags php, oop, symfony
time 24 Aug 2020
Creating objects is a very basic task. Although this seems like a simple problem, it can be improved by using patterns like builder and factory.

Understanding animated graphs in D3.js

tags javascript, d3js, visualization, svg
time 12 Jun 2020
Building a graph is a pretty straight forward task in D3.js, but I've had a hard time understanding how to update them. This is a try to explain why.

Typing in JavaScript - Flow vs. TypeScript

tags javascript, flow, typescript, typing
time 05 Jun 2020
There were two choices for static type checking in JavaScript - Flow and TypeScript. TypeScript is much more popular nowadays, but let's compare them anyway.

Execute commands for multiple files using fish

tags cli, fish, linux
time 13 May 2020
Quite often I want to execute the same command for multiple files. It is quite easy to achieve that using the fish shell, once you get the hang of it.

Finding used values of XML attributes using the command line

tags cli, xml, regex, linux
time 14 Apr 2020
I was refactoring a feature and wanted to know which options were used for a certain attribute in a XML file. I decided to level up my CLI skills for that.

Avoid z-indexes whenever possible

tags html, css, javascript, react
time 08 Apr 2020
Whenever I use z-indexes, I am going to regret it at some point, especially with libraries utilizing components. Let's see if we can avoid them all together.

Creating highly customizable HTML presentations with markdown and pandoc

tags presentations, html, markdown, pandoc, graphviz
time 28 Mar 2020
Presentations can be created using markdown, a plain file format. There are some available options, but let's see why it pays off to build your own solution.

Testing traits with non-public methods

tags php, testing, traits
time 10 Apr 2014
Testing a trait with PHPUnit is not that easy, especially if it only contains private methods. See how it can be achieved in this step by step introduction.

My Getting Things Done system in Wunderlist

tags productivity, wunderlist
time 07 Feb 2014
Building your own "Getting Things Done" system using a few simple tips, including some that will hopefully boost your productivity.