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.…
Page 10 of 20.
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.…
We’ve made it to Day 18, and today we’re going to unlock one of the coolest moves in Rust’s pattern matching toolkit: destructuring. If you've played around with C 7+…
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…
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…
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.…
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…
It's official—week two of learning Rust has wrapped, and I've survived. Mostly. This week was all about ownership, borrowing, and wrestling with Rust's strict rules. And…
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…
When you’ve spent years writing C, you get really comfortable with string being immutable, Span being your performance trick, and StringBuilder being your go-to hammer…
You think you’ve been writing safe code… until you meet the Rust borrow checker. Then suddenly, your once-proud instincts are being side-eyed by a compiler that’s not…
If you've been writing C for a while, you’ve likely crossed paths with ref, in, and out parameters. They allow you to pass variables by reference, enabling a method to…
Okay, so picture this: you're cruising along in your nice, type-safe Rust code, and suddenly... your variable vanishes. Not literally, of course. But the compiler throws…