5 ms·
Ask HN: How do you learn Rust in 2023?
I will probably lean a lot on ChatGPT, but there has to be something better, hopefully free.
- JTarness 3y ago[dead]
- mortallywounded 3y agoProbably the same way you learned it in 2018-2022. By using it to build small projects and progressively get larger.
- dhux 3y agoFirst read the rust book.. And write your own tiny program.
- roland35 3y agoI found that the oriely book "Programming in Rust" to be very thorough and helpful for me. It helped me really understand the concepts of Rust. Although the free rust documentation is fantastic too! https://www.oreilly.com/library/view/programming-rust-2nd/9781492052586/ https://www.oreilly.com/library/view/programming-rust-2nd/97...
- duped 3y agoChatGPT frequently gives out incorrect code, I suggest you start with "the Book" and then work on some projects, like any other language.
- estebandalelr 3y agoThanks! I am looking at The Book (https://doc.rust-lang.org/book/ https://doc.rust-lang.org/book/), but hoped there was an amazing person on youtube. Yeah, I'll build something, finally trying webassembly.
- dikek 3y agoThere's a Youtube playlist I stumbled on. It follows along with the Rust Book. https://www.youtube.com/watch?v=OX9HJsJUDxA&list=PLai5B987bZ9CoVR-QEIN9foz4QCJ0H2Y8 https://www.youtube.com/watch?v=OX9HJsJUDxA&list=PLai5B987bZ....
- mortylen 3y agoFirst, quickly go through all the documentation. Then start writing whatever comes to mind. And if you don't understand something, go back to the documentation. For me, that's the best way to learn.
- bombardier123 3y agoEdited for grammar and format Read the 'Rust Book' as others suggested. Make small programs. - Result and Option ( if let, match etc) - understand references / mutable references - ownership and borrowing. - traits. - learn generics - Box, RC, Refcell, - threads with Arc/ Mutexes. - std::sync - channels(tx, rx) - tokio (if you want to get better at an async runtime) - take up an open source project and do it rust
- owenpalmer 3y agoRead the Rust Book. Rust is not like other languages, you need to understand the fundamentals before staring a project, otherwise you will get frustrated.
- deleted 3y ago[deleted]
- zerr 3y agoSame with C++. Even C++98/03 becomes beautiful after reading TC++PL.
- thatxliner 3y agoA good resource for learning ownership, borrowing, references and all that jazz: https://rust-unofficial.github.io/too-many-lists/ https://rust-unofficial.github.io/too-many-lists/
- qup 3y agoThanks. I've been learning rust and haven't run across this yet.
- jamestimmins 3y agoI have found ChatGPT to be most useful as a way of explaining tricky code examples in Rust. So while going through Rust by Example, I'll paste programs into ChatGPT and have a conversation with it about how specific pieces work. I've also done LeetCode problems and then asked ChatGPT for feedback about my approach.
- skeptrune 3y agoBuild something. I think making an actix-web REST API is a great place to start
- seg_lol 3y agoCreate a Rust program that writes a PPM file to stdout of a shape you want to draw. Ask ChatGPT to give you example programs you need to implement based on part of rust you want to learn.
- Mrirazak1 3y agoHave you tried freecodecamp? Idk if they do it but it’s a suggestion.