Hi! I'm Johannes Dachsel, a web designer and developer based near Heidelberg, Germany. This is my personal website.

Johannes Dachsel

Showing bike rides on my website

A few years ago I started adopting the IndieWeb principles on my website. I have set up a micropub endpoint, I post to twitter from my own site, and I’ve been using OwnYourGram to pull in the photos I post on Instagram.

One thing that I’ve been wanting to do since then, was to include the bike rides I track and post on Strava. Strava let’s you upload activities through their API, which would make it the perfect choice for the POSSE principle.

However, there is a downside to this approach: I don’t have a separate GPS tracking device to record my rides. Instead, I use Strava’s iPhone app which is absolutely brilliant. So I decided to go with the PESOS principle here. I wrote a module for Processwire (the CMS I’m using) that hooks into the LazyCron module, fetches the rides I’m tracking and posts them in the notes section of this site, including the photos I took on the ride, a map and some stats. The final result looks like this.

I really enjoyed playing around with Strava’s API and I suspect I’m not done yet. Next steps might include grabbing the kudos and comments on my rides and displaying them here.

tweet

Easter origami.

Easter origami.

ride

Morning Ride

distance:
31,76km
riding-time:
1:49h
elev-gain:
301m
speed-avg:
18kmh
speed-max:
76kmh
elev-lowest:
141m
elev-highest:
334m

View on Strava

There’s always this guy…

There’s always this guy, trying to diminish whatever good you’re trying to do for your team without having contributed anything himself. There’s always this guy, claiming to be liberal and open to other opinions, as long as they don’t conflict with his own interests. There’s always this guy, lecturing people about their wrongdoings but can’t stand criticism himself. There’s always this guy, expecting things of others which he himself never lives up to. There’s always this guy, blaming everyone else but himself. There’s always this guy, dragging others down to cut a better figure. There’s always this guy, envying everything good that doesn’t happen to himself.

Just don’t be that guy.

Framework considerations

I recently reviewed the performance of one of our clients’ websites. During its lifespan, a myriad of developers had contributed their code without any form version control.

One thing that struck me instantly was the heavy use of JavaScript and CSS frameworks. I counted a total of three framework integrations accompanied by several other scripts that seemed to be solely fulfilling just one purpose each. Even for an “organically grown” codebase this seemed a bit too much.

When it comes to frameworks of any kind, I think it’s worth considering that it comes at a cost. Not to sound old and grumpy but I still see especially young developers choosing their own convenience over the convenience of their users and disregarding the fact, that throwing another 100 KB JavaScript into the mix might actually do more harm than good in terms of performance (and therefore: user experience).

Don’t get me wrong: frameworks are great and they can make your life easier if they are considered well. Let’s say you’re building a web application and are planning to use all kinds of enhancements to make user input easier, i.e. date pickers, spinners, range sliders and so on, then sure, it might be worth considering a framework that can provide this kind of functionality for you.

But if you only want to attach an event listener to an element, then why bother including a JavaScript library to do what you could have done with just a few lines of JavaScript yourself?

tweet

Let the pronunciation games commence.

Let the pronunciation games commence.

ride

Afternoon Ride

distance:
9,24km
riding-time:
0:30h
elev-gain:
116m
speed-avg:
18kmh
speed-max:
36kmh
elev-lowest:
180m
elev-highest:
242m

View on Strava

ride

Saisonauftakt

distance:
54,96km
riding-time:
3:00h
elev-gain:
340m
speed-avg:
18kmh
speed-max:
79kmh
elev-lowest:
141m
elev-highest:
303m

View on Strava