Crates.io error handling in Rust

Recently I wanted to write some more Rust and I was looking for an excuse to do so. It came with an idea of expanding this very blog with the ability to add comments from registered users. I am not really sure yet if that project will be published, but trying to figure out how to write it properly has led me down some interesting rabbit holes. For example - how do you do proper error handling in a Rust web service? I had no idea. Back in 2023 I read zero2prod by Luca Palmieri (fantastic book btw) but it's been a while since I've done any Rust backend and maybe standards have changed by now. I searched for some established projects that use Axum (framework of my choice) and I landed on exploring the internals of the rust-lang/crates.io repository. In this article, I will try to better understand what they are actually doing.

Read more  ↩︎

New tools in my workflow

As always, I love sitting in terminal. I love trying new things. This gives us a logical conclusion - I love trying new things in the terminal. Sometimes, they turn out to be good enough to include in a daily workflow. In a month of July, I actually made some significant changes. In this post, I briefly describe them and my plans for the future. All the configurations are available on my .dotfiles repository for Linux and in .windots for Windows, though I have yet to update screenshots on them.

Read more  ↩︎

Python slots - brief comparison

Slots is a way in Python to customize attribute access. Some people love them, some people don't. In my work experience - I didn't really see them too often. If a code was critical enough that this kind of memory savings mattered then it was written in something else and then leveraged by Python, be it as an extension or an entirely separate component.

Recently a friend of mine who has never heard of them, after my brief explanation, asked: "Okay, but how much do they actually save?" and... I couldn't really answer. In this article, I will try to do exactly that!

Read more  ↩︎

Useful stuff for your terminal

In this article I will show you a small set of cool tools that I've gathered that enhance my developer experience on Linux. My hope for this is that you walk away from this article with something meaningful and useful for your daily workflow. If you would rather just look at the source code, you can find it on Github.

Read more  ↩︎

Dicts, Slop and the Dead Internet

Because I'm relatively young and love learning, I try to live on the cutting edge of technology. I don't try every tool there is, but I read about all of them. With some I experiment. I know roughly what's available and how it functions. In this article I will share some of my thoughts, use cases and observations that surprised me, though my general feeling has been rather negative.

Read more  ↩︎