In April I gave myself one week to learn Rust.
Not a course. Not the whole book. Just small command-line programs, one after another, the way you're told to learn any language: build things.
The git log is still there. A calculator on April 16. A word counter on April 19. A to-do app on April 21. A file reader and a string utility on April 22. Then a sixth folder called log-parser with a main.rs that is nine lines long and was never committed.
That's where the week ended.
Seven months later, people keep asking the same question: is Rust worth learning in 2026? So I did something more useful than giving an opinion. I opened those six folders, rebuilt them with today's compiler (rustc 1.92.0) and ran them again.
The file reader that never finishes
The file reader was supposed to be simple. Take a path, read the file, print the word count and line count.
The test file is 138 bytes.
I ran it. Nothing came out. After three seconds I checked the process: 98% CPU, still running. I killed it. It would have run until I did.
Here's the loop that does it:
let mut buf = BufReader::new(file); while let Ok(x) = buf.read_line(&mut content) {}; read_line returns Ok(0) when it reaches the end of the file. Not an error. Ok(0). So while let Ok(x) matches forever, reading zero bytes at a time, as fast as the CPU allows.
The part that stung: the compiler told me. Every build prints this:
warning: unused variable: `x` I named the number of bytes read x and never looked at it. That number was the whole answer. If I had checked x == 0, the loop would have ended. The warning was pointing straight at the bug, and I scrolled past it because warnings aren't errors.
The fix is one line: std::fs::read_to_string(path). It's sitting right above the loop, commented out.
The error message that lies
The same program has a second bug. Run it on a file that doesn't exist:
Error: NoContentFound The file wasn't empty. It wasn't there. I had written an error type with a PathNotFound variant for exactly this case, then mapped the "can't open the file" error to the wrong variant.
And again, the compiler said so on every build:
warning: variants `PathNotFound` and `ErrorReadingFile` are never constructed Two bugs in a 63-line program. Both sitting in the warnings.
The calculator that says 3 minus 5 is 4 billion
The calculator reads lines like 2 + 3 and prints the result. I used u32 for the numbers.
u32 is an unsigned integer. It can't hold a negative number.
So I typed 3 - 5.
In a normal debug build, Rust stops the program:
thread 'main' panicked at src/main.rs:42:31: attempt to subtract with overflow That's Rust doing its job. It refuses to give a wrong answer.
Then I built it the way you'd ship it, with cargo build --release, and typed the same thing:
result: 4294967294 No crash. No warning. Just a confident, wrong answer. In release builds Rust turns off overflow checks by default for speed, and the number wraps around.
One more: type 2 + x and the whole calculator quits with Error: InvalidNumber("x"). I used ? inside the input loop, and ? doesn't mean "skip this line". It means "return from main". One typo ends the session.
What these bugs say about Rust
The usual pitch is that Rust catches your bugs before they run. My little experiment says something more exact.
What Rust caught:
- Both file-reader bugs, as warnings, on every single build.
- The overflow, as a crash, in debug mode.
- Everything I didn't see, because it never compiled. None of these programs has a null pointer crash, a freed-memory bug or a data race. They can't. That's the part of Rust that's real.
What Rust didn't catch:
- A loop that's valid but never ends.
- Choosing a type that's too small for the job.
- Using
?where I meantcontinue.
Those are logic mistakes. No compiler fixes your logic. What Rust does is make a lot of them loud, if you actually read what it prints.
That's the honest answer to the question. Rust's value for a beginner isn't that your code works the first time. It's that the language keeps telling you exactly where you're being sloppy, in plain words, with line numbers. Every warning I ignored in April was correct.
So, is Rust worth learning in 2026?
Here's how I'd decide, after one week in, a few months out and one rerun.
Learn it if you've already shipped something in another language and want to understand what's actually happening underneath: who owns a piece of data, what happens when something fails, why a number has a size. Rust forces you to answer those questions. JavaScript and Python let you skip them.
Learn it if you want to work where Rust is already the default: systems tools, CLIs, performance-heavy backends, and blockchain programs (Solana programs, for example, are written in Rust).
Wait if your goal is to ship a product next month. A to-do app took me 183 lines and three crates (serde, serde_json, thiserror). The same app is a weekend afternoon in JavaScript or Python. Rust pays you back later, not this week.
And whichever you pick, don't do what I did. I learned the syntax for a week, stopped at a nine-line file, and never reread a single warning.
How I'd learn Rust if I started again
Same small projects. They were the right size. Just three rules I didn't follow:
- Treat warnings as errors. Run
cargo clippy, and don't move to the next project until the output is clean. Two of my four bugs were already on screen. - Test the edges on day one. An empty file. A missing file. A negative result. A typo. Every bug in this post came from one of those four inputs.
- Build in release once.
cargo build --releasebehaves differently from what you test every day. Better to find that on a calculator than in something people use.
And add a .gitignore for target/ before the first commit. My to-do app commit at 17:22 on April 21 included the whole build folder. The next commit, one minute later, is called "remove".
Quick answers
Is Rust worth learning in 2026? Yes, if you already code and want to go deeper. Its compiler is a very good teacher, but only if you read what it prints. If you need to ship something fast, start with a language you know.
Is Rust hard for beginners? The syntax isn't the hard part. Results, ownership and error types are, because Rust makes you handle them instead of hoping. Expect a slower first month than in Python or JavaScript.
What are good Rust beginner projects? Small CLIs: a calculator, a word counter, a to-do list saved to JSON, a file reader, a log parser. Then try each one with an empty input, a missing file and a bad value.
Does Rust prevent all bugs? No. It prevents whole categories (null pointers, use-after-free, data races) and warns about many more. Infinite loops, wrong types and wrong logic still get through.
Rust vs Go for a beginner? Go gets you to a working server faster. Rust teaches you more about what the machine is doing. Pick by what you want this year.
My log-parser is still nine lines. Maybe this time I'll finish it, and read the warnings first.

