All Posts

Web Development

How to load environment variables in Svelte

applications. In contrast to React, it does a lot of the heavy lifting in a compile step instead of in the browser. It’s very clever and comes with enormous advantages but can also have its pitfalls for developers used to the more popular frameworks. In case of the environment variables, one can’t just import dotenv wherever and assume it will work – a replace plugin of rollup (the bundler) has to be used instead. This tutorial uses yarn for a package manager and would work the same with npm.

Read More »
Thriving Coder

You need a manager, not a boss

In a conversation about how a lot of part-time workers vs a few full-time workers can affect a team, my tech friend recently asked me: “Are managers a relic of the past or are they absolutely essential?” Both, I answered.

Read More »
Web Development

How to get an accurate position estimate from the Geolocation API in JavaScript

The Geolocation API has been introduced into modern browsers many years ago and hasn’t changed much since yet it still can waste many hours of your time if you don’t know how to work with it. There’s a lot of magic happening behind the scenes that isn’t properly explained in the documentation. Here’s a straightforward way to get an accurate estimate without you having to spend the 2 days I’ve spent figuring out why my location estimates look like out of a random number generator.

Read More »
Thriving Coder

Coder’s biggest and most hidden enemy. Creeping up on you right now

It’s to a programmer like a pandemic to a society. It creeps up on you. Slowly. There are some tiny signs of it at first but… who would bother? Then it becomes more and more obvious but to an untrained eye, it still seems ignorable. I mean, it’s not like it’s that bad, right? Life’s a bit harder: it gets harder to focus, things are getting a little bit out of control, few bugs here and there creep into the application. But for sure, that can’t yet justify the effort that would have to be applied to resolving it, can it?

Read More »
No more posts to show