Tag: #coding (3 posts)


I'm using Vim, btw...

I recently switched from Zed to Neovim as my editor of choice. It made coding fun again! Here’s how I did it and what I learned.

Preparation

I did vimtutor in vim to get started. It teaches movements and basic editing commands. The format is genius in its simplicity: It’s just a text file opened with Vim, with instructions and examples, where you can try what you just learned.

After completing vimtutor, I wanted to try it on a real workload. I had recently switched from VSCode to Zed with VSCode keybindings. Luckily, Zed has a good Vim mode.

Dates in JS

Date and time handling is arguably one of the most complicated things in computer science. It seems simple, since everybody knows how to read a clock or how to use a calendar. But the devil is in the details, as always. Since so many people seem to get it wrong over and over, we should talk about it.

In this blog post I want to offer a mental model to you. It created this famous click moment for me. Maybe it helps you too. Let me know, I’d be delighted.

Why do we need async/await in JS?

Async/await is a major source of confusion in JavaScript. People tend just to add and remove the async and await keywords until the code works (or seems to work). In this article, I want to explain what async/await actually means by developing the concept from vanilla, synchronous JavaScript to asynchronous JavaScript with the async/await syntax sugar. It is my personal take on the subject. I hope some will find it interesting.