Zum Hauptinhalt springen
Chris’ wirre Gedankenwelt

10. Türchen

Heute gibt es ein Gastbild. An unserem Hambugwochenende haben wir einen Schnuller vergessen, der jetzt dort als Deko fungiert.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

9. Türchen

Die Stargader Straße fängt an ein wenig weihnachtlich auszusehen.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

8. Türchen

Laute und volle Adventstage. Ho Ho Ho.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

7. Türchen

Das Weihnachtlichste an dem ich heute vorbei gekommen bin war ein vorstädtischer Christbaumverkauf.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

6. Türchen

Von meinem gestrigen Lauf habe ich einen Ast mitgebracht, den wir heute dekoriert haben. Gelungen wie ich finde.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

Tell me about the why

Today I came around this piece of code and struggled at the comment.

urlbase64() {
    # urlbase64: base64 encoded string with '+' replaced with '-' and '/' replaced with '_'
    openssl base64 -e | anti_newline | sed -r 's/=*$//g' | tr '+/' '-_'
}

Of cource, this comment is not entirely useless, since it tells me what the function is going to do.

But the important information is missing: The why. Tell me about why you are doing it. Maybe also why you are doing it this was. Most of the time, it is much more difficult for the reader to figure out the why. The what and the how are often obvious.

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

5. Türchen

Bei einem Samstagslauf bin ich an dieser Kirche vorbei gekommen.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

4. Türchen

Es scheint einfacher zu werden. Heute haben wir einen kleinen Spaziergang unternommen und sind an einer Schule mit dekorierten Fenstern vorbei gekommen.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

3. Türchen

Der kleine Weihnachtswichtel hatte Spaß beim einpacken von Geschenken. Zwar war es noch ein Geburtstagsgeschenkt, aber wollen wir mal nicht so streng sein.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.

2. Türchen

Noch ist es gar nicht so einfach etwas weihnachtliches draußen zu finden. Daher heute nur eine Licherkette in einer schäbbigen Ecke.

<div style="clear: both" />

Autor
Chris Glaubitz
Configuring, coding, debugging computers for a living. Riding bikes for fun.