Jan-Lukas Else

Thoughts of an IT expert

Tags: Code


Advent of Code ‘21

Published on in 🔗 Links

New year, new code advent calendar. This year I’m trying my hand at Advent of Code once again in Go. This time with a little help from the copilot. Let’s see if I make it to the end, or have to give up early again…

View

Simply cache form fields in localStorage

Published on in 👨‍💻 Dev

Have you ever started typing something into a web form and then you accidentally closed the browser and lost everything you typed there? Because of that I usually use an external text editor for long posts and later copy the text into my blog editor.

View

Advent of Code

Published on in 🔗 Links

This project has been around for a couple of years, but this time I’m taking part in the Advent of Code for the first time. Every day there is a small programming puzzle (with two parts). I found today’s task pretty easy to implement, let’s see how it will be the next days.

View

The Shapes of Code

Published on in 🔗 Links

It is interesting to look at code not only from the content aspect, but also from the appearance. The appearance of code can give hints how to refactor it.

View

Coding

Published on in 💭 Thoughts

When I write code, it often serves the purpose it is supposed to serve. However, it is often not the most elegant. Especially when I compare my code with other implementations, I sometimes find mine somewhat ugly. I think I’m thinking too chaotic, start writing the code immediately and while I’m writing it, I think of things I could do differently and in the end it’s a big mess. Maybe I should first sketch my code on paper and then type it into the computer without thinking much about it? Or are these just feelings of inferiority and my code is not so bad after all?

View

Refactoring

Published on in 💬 Micro

I wrote about my Indieweb dream this morning. To come closer to this dream and to clean up some code, I started refactoring my hugo backend code. I made use of Go interfaces to later be able to easily add more storage, CDN or social network providers. It also made the code a bit cleaner and a bit more modular, but there’s still a lot of learning and work to do. What I still struggle with though is testing: I don’t have any automatic tests yet. How do I test HTTP calls to external APIs?

View

Jan-Lukas Else