Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How do you learn Rust in 2023?
32 points by estebandalelr on Nov 3, 2023 | hide | past | favorite | 16 comments
I will probably lean a lot on ChatGPT, but there has to be something better, hopefully free.


A good resource for learning ownership, borrowing, references and all that jazz: https://rust-unofficial.github.io/too-many-lists/


Thanks. I've been learning rust and haven't run across this yet.


I 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/97...


Read the Rust Book. Rust is not like other languages, you need to understand the fundamentals before staring a project, otherwise you will get frustrated.


Same with C++. Even C++98/03 becomes beautiful after reading TC++PL.


I 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.


Edited 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


Thanks! I am looking at The Book (https://doc.rust-lang.org/book/), but hoped there was an amazing person on youtube.

Yeah, I'll build something, finally trying webassembly.


There's a Youtube playlist I stumbled on. It follows along with the Rust Book.

https://www.youtube.com/watch?v=OX9HJsJUDxA&list=PLai5B987bZ....


Create 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.


First read the rust book.. And write your own tiny program.


ChatGPT frequently gives out incorrect code, I suggest you start with "the Book" and then work on some projects, like any other language.


Probably the same way you learned it in 2018-2022. By using it to build small projects and progressively get larger.


Build something. I think making an actix-web REST API is a great place to start


Have you tried freecodecamp? Idk if they do it but it’s a suggestion.


First, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: