Stop Context-Switching: How Git Worktree + UV Revolutionized my python workflow

If you've ever found yourself frantically stashing changes, switching branches, and losing your mental context just to review a pull request or work on a quick hotfix, you know the pain.

For Python developers, this was made even worse by the overhead of managing virtual environments. But the combination of git worktree and uv has completely changed the game.

We won a hackaton 🏆

Two weeks ago, I had the incredible opportunity to participate in NumHack 2024 alongside Jurij Wollert and Fabrizio Damicelli ... and to our amazement, we won 1st place in the Build Category 🧱

We came for the fun, we stayed for the challenge, and we left with the prize 🏆

Tip

Spoiler alert: If you want to get a sense of the final outcome before reading the rest of the post, you can watch the video submission we prepared.

Pytest: does not raise

If you took the wise decision to test your codebase, you probably stumbled upon pytest as the defacto tool that offers a large suite of features and extensions.

However, there is a neat trick I like to use when testing, and I often get the "Wow! TIL about that!" reaction when introducing it.

The Code Review Chronicles (in industry)

Since I joined HelloFresh, I have been involved in a significant number of code reviews since the very first day at the company.

As code reviews are a fundamental part of software development process and take a large part of my day to day, I immediately started to take it very seriously.