22nd of March, 2018 · Updated on 27th of April, 2021 · Tagged with dev
Refactoring Go Code to Avoid File I/O in Unit Tests
At work today, I refactored some simple Go code to make it more testable. The idea was to avoid file handling in unit tests without mocking or using temporary files by separating data input/output and data manipulation. More »
9th of March, 2018 · Tagged with dev, rust
A Tiny `ls` Clone Written in Rust
In my series of useless Unix tools rewritten in Rust, today I'm going to be covering one of my all-time favorites: ls. First off, let me say that you probably don't want to use this code as a replacement for ls on your local machine (although you could!). As we will find out, ls is actually quite a … More »
9th of January, 2018 · Tagged with dev, rust
Rust in 2018
I wrote about the future of Rust before and it seems like nobody stops me from doing it again! Quite the contrary: this time the Rust core team even asked for it. I'm a bit late to the party, but here are my 2 cents about the priorities for Rust in 2018. More »
2nd of January, 2018 · Tagged with dev
Functional Programming for Mathematical Computing
Programming languages help us describe general solutions for problems; the result just happens to be executable by machines. Every programming language comes with a different set of strengths and weaknesses, one reason being that its syntax and semantics heavily influence the range of problems which… More »
17th of December, 2017 · Tagged with dev, rust
Rust for Rubyists
Recently I came across a delightful article on idiomatic Ruby. I'm not a good Ruby developer by any means, but I realized, that a lot of the patterns are also quite common in Rust. What follows is a side-by-side comparison of idiomatic code in both languages. The Ruby code samples are from the origi… More »
10th of December, 2017 · Tagged with dev, oss
Making Myself Obsolete
In December 2015 I was looking for static analysis tools to integrate into trivago's CI process. The idea was to detect typical programming mistakes automatically. That's quite a common thing, and there are lots of helpful tools out there which fit the bill. So I looked for a list of tools... More »
7th of November, 2017 · Tagged with culture
Modern Day Annoyances - Digital Clocks
This morning I woke up to the beeping noise of our oven's alarm clock. The reason was that I tried to correct the oven's local time the day before — and I pushed the wrong buttons. As a result I didn't set the correct time, instead, I set a cooking timer... and that's what woke me up today. More »
15th of October, 2017 · Tagged with culture, dev, oss, rust
Learn Some Rust During Hacktoberfest
October is the perfect time to contribute to Open Source — at least according to Github and DigitalOcean. Because that's when they organize Hacktoberfest, a global event where you get a free shirt and lots of street cred for creating pull requests. More »
10th of October, 2017 · Updated on 29th of April, 2021 · Tagged with dev, rust
A Little Story About the `yes` Unix Command
What's the simplest Unix command you know? There's echo, which prints a string to stdout and true, which always terminates with an exit code of 0. Among the series of simple Unix commands, there's also yes. If you execute it without arguments, you get an infinite stream of y's, separated by a newlin… More »
18th of September, 2017 · Tagged with dev, oss, rust
Lightning Fast Image Previews with Pure CSS and LQIP
My website is reasonably fast. There was one thing left which really annoyed me: layout reflow after images got loaded. The problem is, that the image dimensions are not known when the text is ready to be displayed. As a result, the text will be pushed down on the screen as soon as an image is loaded above. I decided to fix that once and for all. More »