Rust Crash Course | #13 Pointers and Referencing
HTML-код
- Опубликовано: 27 окт 2024
- Welcome back to video number 13 in this Rust tutorial series! In this video, we learn about pointers and referencing!
📖Resources📖
Rust Online Book: doc.rust-lang....
💻Code💻
github.com/cod...
🔗 Social Media Links 🔗
📸 Instagram: / codeofthefuture
📱TikTok: / codeofthefuture
📘Facebook: / codeofthefuture
🦜Twitter: / code_ot_future
📝LinkedIn: / code-of-the-future
📂GitHub: github.com/cod...
💸 Donations 💸
One-Time Donations: ko-fi.com/code...
Patreon: / code_of_the_future
I just started learning Rust yesterday, and I'm still at the stage of expecting pointers and references to work just like C.
So when they inevitably don't, I'm back to the freshman days of seeing the & and * operators as magic incantations that work only when the moon is in the right phase
Looking forward to seeing the in-depth video for pointers, it's pleasant to listen to you. Many people want to learn to code, but they don't want to learn the inner workings of a computer and its components. Not knowing anything about memory adresses or cpu cycles makes it hard to understand the necessity of pointers and references and can even screw a simple JavaScript program. However, you forgot your glasses.
you should not then learn rust, good way to go would be to learn python or typescript.
rust is designed as middle-level language (with access to system), therefore understanding how computer works is a must.
trust me, you should learn the inner stuff as well. Its a deep learning curve at first, but then everything becomes smooth.
where can I see the other videos? great course Ellie!
Thank you for your video :)
cool stuff , ellie
And the glasses?
What is the name of the theme your are using in your code?
Is the reason for “we cant do this”, because rust can’t copy the vector
Not exactly, you can copy it but not as a vector. Vectors are non-primitive
Hold up. What if you dont use the macro to initialize the vec?
new subscriber from Pakistan...lots of respect and love from pakistan.
Hello Everyone! Amazing content yeah! I am still very new to Rust and i noticed something i want to correct so that other people do not work with the same assumption as i had, around ruclips.net/video/OiyfIJe4s0c/видео.html
She says arrays allow copy to another variable on reassignment because they are primitive types, well that is not entirely correct, in the case she used; it works! this is because the elements of the array implements Copy trait, therefore the array itself can be copied on reassignment or when passed to a function, but if instead i used Strings as the element of my arrays, i would not be able to get away with the assumptions that arrays always copy on reassignment. But this was definitely very educative. Thank you so much
rare to see a female programmer