Rust First Impressions

  Рет қаралды 14,989

Awesome

Awesome

Ай бұрын

A quick look at the Rust programming language.
💬 Topics:
- What is Rust?
- Advantages of Rust;
- Rust Macros;
- Immutability in Rust;
- Rust code examples;
- Ownership and Borrowing;
- Rust crash course;
🥇 Become a Member - / @awesome-coding
✉️ Join the Newsletter - newsletter.awesome.club/
📖 Blog Article - www.awesome.club/blog/2024/ru...

Пікірлер: 113
@EduardKaresli
@EduardKaresli Ай бұрын
Being a former C++ developer myself really helps learning Rust. It cannot be more complicated than C++ 😂😂😂
@awesome-coding
@awesome-coding Ай бұрын
That might be the only advantage of C++ - it makes everything else feel reall easy 😅
@EduardKaresli
@EduardKaresli Ай бұрын
@@awesome-coding C++ was a pain in the back, I programmed in it for 15+ years and everything was a problem, setup, libraries, the horrible make system and salaries. So I moved to JavaScript/TypeScript, but still I think any CompSci graduate needs a low-level language under their belt and Rust looks like a great candidate for the next 15-20 years.
@trappedcat3615
@trappedcat3615 Ай бұрын
I hear Haskell is another helper
@ntrrg
@ntrrg Ай бұрын
Just give it some time, and we will see
@JR-hb6jr
@JR-hb6jr Ай бұрын
As a self taught front end web dev, Learning rust feel like I only have a single brain cell. Has been reading the book and watching let's get rusty videos and trying it out. It is very very hard. But I won't stop learning.
@jitx2797
@jitx2797 Ай бұрын
As a JavaScript developer this just fries my brain.
@awesome-coding
@awesome-coding Ай бұрын
:)) Give it time! In all seriousness, one of the best things I did in my career is getting out of my comfort zone and learn concepts from different languages (this is what I'm trying to do with these videos as well). It's hard at first, but you'll gain a lot by learning how different languages are doing different things.
@alinghinea
@alinghinea Ай бұрын
+1 😅
@jitx2797
@jitx2797 Ай бұрын
@@awesome-coding yea I am learning Go. My college project is in go
@awesome-coding
@awesome-coding Ай бұрын
@@jitx2797 Did you see my Go introduction video? :D kzbin.info/www/bejne/e2jTqXqvesiDhKssi=4uwMFklp2sSW9i40
@jitx2797
@jitx2797 Ай бұрын
@@awesome-coding yes awesome video :)
@MagicNumberArg
@MagicNumberArg Ай бұрын
In Rust we have learned all the lessons of last 40 years, it's like C, but where writing a web service isn't much harder compared to modern GCed languages.
@fagnersales532
@fagnersales532 Ай бұрын
It would be nice to have a descriptive title that tells the video is part of the series. Would love to watch more.
@awesome-coding
@awesome-coding Ай бұрын
Thank you for your suggestion! I'll try to make some changes :D
@TechBuddy_
@TechBuddy_ Ай бұрын
rust mentioned let's goooooooo 🔥
@awesome-coding
@awesome-coding Ай бұрын
Now I just have to wait for the hundreds of thousands of views 😅
@callanambulancebutnotforme5702
@callanambulancebutnotforme5702 Ай бұрын
more rust pls
@awesome-coding
@awesome-coding Ай бұрын
Will post more for certain!
@nexxai
@nexxai Ай бұрын
Would love to learn more about Rust. Please post more!
@awesome-coding
@awesome-coding Ай бұрын
Will do! Thanks for the input!
@kunodragon4355
@kunodragon4355 Ай бұрын
Kind of felt like the video was inconclusive. Still, thank you for the peek into Rust!
@awesome-coding
@awesome-coding Ай бұрын
Thanks for the feedback - I believe you are right, I should have added some personal conclusions at the end of the video. Will do so in the next ones.
@thomasrasser
@thomasrasser Ай бұрын
Great video. I would also appreciate the most common way, to solve the compilation error at 4:34
@awesome-coding
@awesome-coding Ай бұрын
Thanks for the feedback! I'm planning more "Snippet" videos, and solving borrow checker errors will be addressed for certain!
@crasite
@crasite Ай бұрын
You can pass in get_polite(name.clone()). This create a copy of that data and pass it in.
@porcupinetree-bb3zg
@porcupinetree-bb3zg Ай бұрын
make a video on the axum framework. i built a similar service to mailchimp with it. you could also include sqlx which gives you compile time checked queries. from there maybe you could cover leptos which is the rust meta framework that is a port of solidjs/solid-start. it has co-located server functions and most of the modern js framework features.
@awesome-coding
@awesome-coding Ай бұрын
All great ideas! Thanks for the suggestions!
@LetrixAR
@LetrixAR Ай бұрын
I enjoy using Tauri that uses a Rust backend with a JS frontend
@awesome-coding
@awesome-coding Ай бұрын
I hear great things about Tauri!
@cariyaputta
@cariyaputta Ай бұрын
Rust is a joy to code in. And the official documentation is great.
@seasong7655
@seasong7655 Ай бұрын
I felt very unproductive in Rust and quickly went back to python for my projects. There's a lot of extra steps involved like catering to the borrow checker, lifetimes or chosing the correct string type. It's a lot of additional typing and doing other work instead of actually solving the problem at hand.
@awesome-coding
@awesome-coding Ай бұрын
Fair points.
@savagemode2150
@savagemode2150 Ай бұрын
I found myself in the same spot switching from rust to golang over and over until rust suddenly clicked on me, then I ditched go and commited to rust, that was a year ago, I now feel just as (probably more) productive in rust as I was in go.. the bad part is that I got so used to rust that I now struggle to code in any other language that don’t provide so many guardrails like rust does
@savagemode2150
@savagemode2150 Ай бұрын
Plus rust really improved my cs knowledge, like understanding cpu and memory efficiency concepts and bad practices
@lardosian
@lardosian Ай бұрын
@@savagemode2150 Must give it a go also, are you using Rust in your day job?
@gavenblsn4753
@gavenblsn4753 Ай бұрын
interested, please more rust. thank you
@awesome-coding
@awesome-coding Ай бұрын
More to come!
@rhythmblues2069
@rhythmblues2069 Ай бұрын
good video mate
@awesome-coding
@awesome-coding Ай бұрын
Thank you!
@Rtzoor
@Rtzoor Ай бұрын
deep dive on the double!
@stone-snare
@stone-snare 15 күн бұрын
now that you know rust, you should make a video on the react compiler. i've looked at some of it but i think it would make a nice video.
@awesome-coding
@awesome-coding 13 күн бұрын
Great idea! I'll look into it - thanks!
@r2_rho
@r2_rho Ай бұрын
We need more rust videos!
@awesome-coding
@awesome-coding Ай бұрын
More to come!
@rssszz7208
@rssszz7208 Ай бұрын
Currently learning c++ and this come in recommendation😮
@awesome-coding
@awesome-coding Ай бұрын
Funny how YT recommendations work.
@Leonhart_93
@Leonhart_93 16 күн бұрын
Keep learning C++
@codelucky
@codelucky Ай бұрын
Rust is exciting for a specific purpose.
@awesome-coding
@awesome-coding Ай бұрын
👍
@Lucs-ku5cb
@Lucs-ku5cb Ай бұрын
Make a video about Web Assembly in Rust pls
@awesome-coding
@awesome-coding Ай бұрын
Will do - it's on my list. Thanks for the input!
@PierreChevallier
@PierreChevallier Ай бұрын
I think it would be good if when you present a programming language, you tell us the uses of this language. Like javascript is used in the web, C++ in video games...
@awesome-coding
@awesome-coding Ай бұрын
You are right - thanks for the suggestion!
@alejandroj.mendezc.981
@alejandroj.mendezc.981 Ай бұрын
Rust Rules!
@JR-hb6jr
@JR-hb6jr Ай бұрын
Can you do one by making a small real world tool?
@awesome-coding
@awesome-coding Ай бұрын
Sure thing! Coming soon!
@riigel
@riigel Ай бұрын
Rust!!!
@nm6x
@nm6x Ай бұрын
Lifetimes! Please help me with lifetimes!
@awesome-coding
@awesome-coding Ай бұрын
Added it to the list!
@riigel
@riigel Ай бұрын
yeaaaa count me in lol
@rssszz7208
@rssszz7208 Ай бұрын
Rust look hard then c++😂
@awesome-coding
@awesome-coding Ай бұрын
Yes, I believe this to be true 😅
@zcuric
@zcuric Ай бұрын
Throwing bone to ThePrimeagen for views. Just kidding, great video!
@awesome-coding
@awesome-coding Ай бұрын
😂 Trust me, I'll do way worse things for views 😅
@TheTmLev
@TheTmLev Ай бұрын
I don't think starting the video by explaining macros is a good idea...
@TheTmLev
@TheTmLev Ай бұрын
Yeah... I'd definitely use some other examples for a quick look at the language
@awesome-coding
@awesome-coding Ай бұрын
Right, here is the issue though - this is the "Hello world" example, so you have to address the macro, right? Otherwise people will wonder why the hell you need to put an exclamation mark after the function name. The first Object oriented language I learned in year 1 at the University was Java. They started with the following: So all programs have to start with "public static void main (String[] args)" but don't worry about what each keyword means, you'll learn it throughout the year. Some people could go past that.. I couldn't :) So I fell it's always better to address the topic, even in passing, than just to lave people wonder about the details. My 2 cents :)
@lardosian
@lardosian Ай бұрын
@@awesome-coding That really put me off Java as well, I sitched to Python and was much happier.
@ashleyfreebush
@ashleyfreebush Ай бұрын
I do not think i can keep up with this..😅
@awesome-coding
@awesome-coding Ай бұрын
😂✌️
@buddy.abc123
@buddy.abc123 Ай бұрын
Rust syntax is the only reason I'm not interested in writing it.
@awesome-coding
@awesome-coding Ай бұрын
I agree it's pretty over the top, especially if your background is in a language like Java.
@howdyimflowey4341
@howdyimflowey4341 Ай бұрын
So... What are your impressions? You just described some of the features of Rust without saying anything about your subjective opinion. The video is good, but it's very common for videos about Rust to be like this, so it feels generic. If you continue this series, I really recommend adding a section at the end of the video where you express your subjective impressions on the language, what you liked, what not, and why.
@awesome-coding
@awesome-coding Ай бұрын
Thank you for your feedback - it is actually very valuable. I believe you are right, and I could add a subjective angle to all this. I believe that the steep learning curve everybody is complaining about is a real thing, and you need a lot of dedication to get over the initial frustrations. Definitely not a language I would suggest to beginners. Other than that, I find its concepts really interesting, and it's always a good exercise to analyse how various languages try to solve problems. Definitely, I'd like to continue with this series, because I believe the best way to learn programming concepts is to look at actual code and applied examples. In the next Rust video I'll make sure to add in my impressions as well.
@jurienhamaker
@jurienhamaker Ай бұрын
third
@damiangilz
@damiangilz Ай бұрын
All my low level friends quit Rust, so I wont even touch it.
@awesome-coding
@awesome-coding Ай бұрын
I am curious to know why :D
@bear458ziif-s
@bear458ziif-s Ай бұрын
@@awesome-coding probably because there is a crowd of low level engineers that do not like rust because it is not low level enough for them. they are used to c and c++ and do not like that having that many guard rails. i have also heard criticisms of unsafe rust being difficult at times. my complaints with rust are compile times and dealing with async complexity on a library level. aside from library code, developers will rarely come across complexity with async, because crates are designed to be high level and mitigate complexity. however, the things i like about rust outweigh the drawbacks for me personally.
@Leonhart_93
@Leonhart_93 16 күн бұрын
Yeah, too many guardrails which require jumping through many hoops for stuff other programming languages handle seamlessly.
@damiangilz
@damiangilz 16 күн бұрын
@@awesome-coding Zig/C is better. Rust Is a forced swallow in comparison. In the case of C its a matter of having the right training.
@Niksorus
@Niksorus Ай бұрын
Moar please 😊 I am so happy to learn that you're unemployed (and a bit sorry too)
@cslearn3044
@cslearn3044 Ай бұрын
The second a frikin usa government recommended people to use rust, i completely stopped using rust
@awesome-coding
@awesome-coding Ай бұрын
😂 The US is already building military bases in my country, so I don't think using or not using Rust will make any difference in my case 🤦‍♂️
@krateskim4169
@krateskim4169 Ай бұрын
If you are still unemployed, then I'm fu*ked(searching for a job)
@Peacemaker.404
@Peacemaker.404 Ай бұрын
first ❤
@awesome-coding
@awesome-coding Ай бұрын
✌️
@cryptonative
@cryptonative Ай бұрын
Why learn Rust: - Learn new programming concepts eg. macros and algebraic types - Systems programming eg. databases, OS, blockchain, cli tools, game dev - Observe that coding is becomes easier as the project grows unlike JS/TS Why not learn Rust: - For frontend dev
@awesome-coding
@awesome-coding Ай бұрын
Leptos is a pretty good solution for web dev :)
@cryptonative
@cryptonative Ай бұрын
@@awesome-coding It's not there yet. Long compile times, big wasm size and not much of a performance increase because of glue code. Really have high hopes for it though
@jellyfish1772
@jellyfish1772 Ай бұрын
This is not complicated
@awesome-coding
@awesome-coding Ай бұрын
Famous last words :D
@larsartmann
@larsartmann Ай бұрын
2:33 Go back to Java 😂
@awesome-coding
@awesome-coding Ай бұрын
😅 Java never disappoints!
@krellin
@krellin Ай бұрын
fuck rust, do zig
@awesome-coding
@awesome-coding Ай бұрын
Great! Now I have to spend another 3 months reading books on another language?! :))
@an-eios7125
@an-eios7125 Ай бұрын
@@awesome-coding Zig is just C with some extra stuff. Some might call it C++
@porcupinetree-bb3zg
@porcupinetree-bb3zg Ай бұрын
zig is more complicated for web but less complicated for systems programming. you still have to manually free memory with zig whereas the borrow checker is kind of a cross between gc and manual memory management. the type system is really lacking in zig too. zig is more of a c replacement as opposed to it's own language.
@awesome-coding
@awesome-coding Ай бұрын
@@an-eios7125 It always sounds easy on paper. I know of Zig because of all the Bun "marketing", but never looked into it in detail.
@bear458ziif-s
@bear458ziif-s Ай бұрын
@@awesome-coding don't waste your time learning zig. zig compared to c is basically what kotlin is compared to java. it's not quite that but that's what they're going for. there isn't much incentive to learn it for the sake of learning it. it's just meant to interop well and be relatively similar to c. they didn't invent new concepts or anything.
@CultKosmosa
@CultKosmosa Ай бұрын
bbad and uninformative, total waaste of time
@awesome-coding
@awesome-coding Ай бұрын
Sorry to hear that. I'd like to know what can be improved if you are willing to share that.
@CultKosmosa
@CultKosmosa 23 күн бұрын
@@awesome-coding idk, come up with original ideas, youre just regurgitating information from other streamers like a dog eating trash. just an analogy, not an insult. And not of the type where you just read the docs, we read the docs thank you. ORIGINality is the commodity and is so rare. Youre just a xerox of a xerox, will keep an eye on you, bet you cannot improve because brain too smol to evolve past this EASY route of sharing trash with people. but hope for the best, cheers
@GenericInternetter
@GenericInternetter Ай бұрын
Rust looks awful.
@RegrinderAlert
@RegrinderAlert Ай бұрын
*awesome 😎
@awesome-coding
@awesome-coding Ай бұрын
😅
@vanessaarrey8165
@vanessaarrey8165 Ай бұрын
dont_panic.unwrap()
@awesome-coding
@awesome-coding Ай бұрын
😅
Kotlin First Impressions
3:45
Awesome
Рет қаралды 12 М.
How Slow Is JavaScript? | Prime Reacts
15:34
ThePrimeTime
Рет қаралды 168 М.
Be kind🤝
00:22
ISSEI / いっせい
Рет қаралды 21 МЛН
Joven bailarín noquea a ladrón de un golpe #nmas #shorts
00:17
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 18 МЛН
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 279 М.
major security vulnerability found in rust (over hyped?)
8:06
Low Level Learning
Рет қаралды 133 М.
Rust for the impatient
10:43
No Boilerplate
Рет қаралды 650 М.
Is Tmux DEAD? Zellij is the new multiplexer written in Rust
32:38
Mischa van den Burg
Рет қаралды 9 М.
The Harsh Reality of Good Software
5:56
Awesome
Рет қаралды 39 М.
Rust Functions Are Weird (But Be Glad)
19:52
Logan Smith
Рет қаралды 125 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 358 М.
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 243 М.
Rust прекрасен, а Kotlin Native чет не очень
17:25
I'm Coming Around To Go...
21:33
Theo - t3․gg
Рет қаралды 98 М.