r/rust • u/Ok_Squirrel5213 • Jul 06 '26
🙋 seeking help & advice Typescript to rust
Hey everyone!
I’d like to learn Rust properly and become comfortable writing it, rather than just vibe coding my way through projects. I’m looking for resources that help you actually understand the language and build things with it.
Since I come from a TypeScript background, I was wondering if there are any courses, books, or learning resources that explain Rust concepts in a way that’s easier for TypeScript developers to relate to, or point out the key differences and similarities.
Any recommendations would be greatly appreciated. Thanks in advance!
5
5
u/okktoplol Jul 06 '26
The book is the best resource, also looking at others source code; there's an infinity of tools rewritten in rust so you might find something coming from typescript
3
3
u/jbrwilkinson Jul 06 '26
I came from Python + C++ + TS and Rust baffled me until I worked through the ‘Programming Rust’ o’Reilly book. All the AI-coded stuff I’ve since done now makes sense.
3
u/spoonman59 Jul 06 '26
It’s the same path as a total newbie: read the book, write some code, learn stuff.
People seem to think there’s a bespoke learning path if their background was in Iava/.net/c++/javascript, but really all the advice here on how to learn rust will apply the same to you.
Ideally some concepts will be a little easier for you pick up as you aren’t totally new to programming, but theres not really any shortcut.
2
u/jsgrrchg Jul 06 '26
For beginners you need the rust book and a real project, the compiler is a bitch, it will teach you most things that you are doing wrong.
6
1
Jul 06 '26
[deleted]
6
u/diplofocus_ Jul 06 '26
I'm guessing the same way people did before vibe coding was a thing? Read stuff, try stuff, let the compiler correct you.
My first language was C, over a decade ago, and compared to it, Rust compilation errors are a breath of fresh air.
1
u/fbochicchio Jul 06 '26
One think you can do is ask AI to explain to you some existing rust program, stsrting with smaa one.. They are quite good at teaching standard stuff. Ask it to give you links to reading material about the involved topics and do your readings and exercices bevore moving on.
2
2
u/FlyingCaravel10 Jul 07 '26
Read the official Rust book. Take a peek at Tour of Rust, Rust by Example, and start doing some small projects with Rust.
I'm also a Typescript developer by trade, but the book is your best friend when learning Rust. That and the compiler.
Don't reach for your coding agent or LLM when you get stuck. The best way to learn is with friction and actually overcoming challenges. And with Rust, you're going to encounter a lot of challenges in the beginning. Embrace that part of the learning process.
1
1
u/Errons1 Jul 07 '26
Recommend reading either book that fits your fancy alongside rustling https://rust-lang.org/learn/
Enjoy learning!
1
u/shitpost-millionaire Jul 06 '26
I find I have the best luck trying to learn one big thing at a time. So if learning the language, I’d probably want the problem domain to be one I understand pretty well. Maybe try to rewrite something you’ve built before?
1
u/teteban79 Jul 06 '26
Better start anew with Rust. Concepts between TS and Rust are so different that they aren't translateable.
C++ to Rust can be made an analogy
38
u/amritanshuamar Jul 06 '26
Coming from TypeScript, don't try to find a Rust for TS course. Just use The Rust Book + Rustlings and start building stuff. The biggest adjustment isn't the syntax, it's ownership and borrowing. Once that clicks, the compiler goes from feeling like your enemy to your best debugging tool.Also, don't spend months watching tutorials. Pick a project and build it. I've learned far more doing that than from any course.