Working with strings in Rust

When I started learning Rust, I struggled a bit with choosing the right type for different situations. I think this comes from spending a lot of time working only with high-level programming languages like TypeScript. In TypeScript, a string is just a string, so there’s no need to overthink it. Over time, I’ve developed my own rules based on my successes and failures. Recently, I came across a blog post by Steve Klabnik that I found really insightful. If you’re interested in a deeper explanation, I highly recommend checking it out. He presents some progressive, level-based rules for working with strings in Rust. ...

October 20, 2024

The Zig programming language

This post kicks off a series about the Zig programming language, following the “learning in public” approach I mentioned in my about section. At least for now, I’m not planning to write long posts or detailed tutorials. Instead, I’ll share my small (but hopefully consistent) steps on this journey. Here and there, I’ll connect some concepts to ones I’m already familiar with from languages like C and Rust. Language features As noted in its documentation, Zig serves two main purposes: ...

September 16, 2024