Rust2 min read

Result<T,E>: A Better Way to Fail

Welcome to Day 20! Today we’re talking about failure, but in the best possible way. Because, let's be honest, things go wrong. Files go missing. Network calls timeout.…

Rust2 min read

Option<T>: Where Null Is Not an Option

Ah, nulls, the "billion-dollar mistake" that haunts just about every C developer. How many times have you chased down a NullReferenceException, muttering under your…

Rust2 min read

Match: Switch on Steroids

Welcome to Day 17! By now, we've covered some seriously cool Rust features, but today might be my favorite so far: the match expression. If you're coming from a C…

Rust2 min read

Enums: Discriminated Unions Done Right

Welcome to day 17! Today, we're diving into Rust's enums—and spoiler alert—they're not your typical enums from C. Rust enums are powerful, flexible, and genuinely fun.…

Rust2 min read

Rust Structs vs C# Classes: Less is More

Welcome back! After wrestling with Rust's strict ownership rules, let's ease into something a little more familiar (yet refreshingly different): structs. As a C…

Rust2 min read

Shadowing in Rust: Redeclaring with Style

We've all been there. You're coding away, and suddenly you reuse a variable name without realizing it. If you're a C developer, your brain probably triggers a warning…