CherryKitten https://cherrykitten.dev Zola en Sat, 25 Feb 2023 00:00:00 +0000 Learning Rust Part 1: A kitten's guide to Options and Results Sat, 25 Feb 2023 00:00:00 +0000 Unknown https://cherrykitten.dev/blog/rust-1-options-results/ https://cherrykitten.dev/blog/rust-1-options-results/ <h3 id="to-unwrap-or-not-to-unwrap-that-is-the-question">To unwrap() or not to unwrap(), that is the question:</h3> <p>So I've finally given in and started to learn Rust last month. It's a really cool programming language, with some interesting differences to what I've used before. (JavaScript and Python, mostly)</p> <p>There are some really pawesome guides out there, <a href="https://doc.rust-lang.org/book/">&quot;The Rust programming language&quot;</a> is definitely a <strong>must-read</strong> in my opinion, and <a href="https://github.com/rust-lang/rustlings">Rustlings</a> is nyamazing for anyone who likes to learn by actively working through interactive problems.</p> <p>After reading through a lot of those big thorough guides by experienced Rust developers, I've started working on my first actual Project. I approached the development of this project by just trying to get small parts of it working in any way I can manage, and then build upon this. In that process, I learned a lot of small subtilties that guides like the ones named above just can't really cover. This post is for sharing those things, those cool little tips to make your first Rust project just a little cleaner and more Rust-y. Originally I wanted to make this about a lot of different topics, but then I've realized that my notes already contain so many things about just one part of Rust: The Enums <code>Option</code> and <code>Result</code>. So this post will be about those, and hopefully will mark the start of a series on this blog.</p> <p>While reading through this, you might think that the things I'm mentioning are obvious. That's okay, and that's the point. Nothing is ever completely obvious to everyone, and this is for those like me, who often don't immediately recognize the &quot;obvious&quot;. And, to be honest, I am writing this just as much for myself, writing all of that stuff down to aid me in my own ongoing learning process.</p> <p>So, let's start!</p> The Fediverse is more than just Mastodon Sat, 26 Nov 2022 00:00:00 +0000 Unknown https://cherrykitten.dev/blog/fediverse-isnt-just-mastodon/ https://cherrykitten.dev/blog/fediverse-isnt-just-mastodon/ <p>With Twitter in a downwards spiral thanks to some rich guy whose name escapes me breaking everything, the Fediverse has been getting the biggest influx of new users in a very long time. People have been recommending &quot;Mastodon&quot; as a Twitter alternative for a while now, causing #Mastodon to be the top trending Hashtag on many days.</p> <p>Browsing that hashtag one can find a lot of misconceptions about what Mastodon is, how it works, and what its limitations are. These misconceptions are not just spread by people who dislike Mastodon and try to convince others not to use it, though. They are also perpetuated by people who seem to want to increase the userbase at all cost, regardless of whom it attracts to the Fediverse.</p>