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. ...
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: ...