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. |
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. |
https://www.oreilly.com/library/view/programming-rust-2nd/97...
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.
- 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
Yeah, I'll build something, finally trying webassembly.
https://www.youtube.com/watch?v=OX9HJsJUDxA&list=PLai5B987bZ....
Ask ChatGPT to give you example programs you need to implement based on part of rust you want to learn.