Тёмный

Rust First Impressions 

Awesome
Подписаться 49 тыс.
Просмотров 16 тыс.
50% 1

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.awe...
📖 Blog Article - www.awesome.cl...

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 114   
@EduardKaresli
@EduardKaresli 5 месяцев назад
Being a former C++ developer myself really helps learning Rust. It cannot be more complicated than C++ 😂😂😂
@awesome-coding
@awesome-coding 5 месяцев назад
That might be the only advantage of C++ - it makes everything else feel reall easy 😅
@EduardKaresli
@EduardKaresli 5 месяцев назад
@@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 5 месяцев назад
I hear Haskell is another helper
@ntrrg
@ntrrg 5 месяцев назад
Just give it some time, and we will see
@JR-hb6jr
@JR-hb6jr 5 месяцев назад
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.
@heyjitendra
@heyjitendra 5 месяцев назад
As a JavaScript developer this just fries my brain.
@awesome-coding
@awesome-coding 5 месяцев назад
:)) 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 5 месяцев назад
+1 😅
@heyjitendra
@heyjitendra 5 месяцев назад
@@awesome-coding yea I am learning Go. My college project is in go
@awesome-coding
@awesome-coding 5 месяцев назад
@@heyjitendra Did you see my Go introduction video? :D ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-E7pxGyEcPNI.htmlsi=4uwMFklp2sSW9i40
@heyjitendra
@heyjitendra 5 месяцев назад
@@awesome-coding yes awesome video :)
@MagicNumberArg
@MagicNumberArg 5 месяцев назад
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 5 месяцев назад
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 5 месяцев назад
Thank you for your suggestion! I'll try to make some changes :D
@TechBuddy_
@TechBuddy_ 5 месяцев назад
rust mentioned let's goooooooo 🔥
@awesome-coding
@awesome-coding 5 месяцев назад
Now I just have to wait for the hundreds of thousands of views 😅
@seasong7655
@seasong7655 5 месяцев назад
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 5 месяцев назад
Fair points.
@savagemode2150
@savagemode2150 5 месяцев назад
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 5 месяцев назад
Plus rust really improved my cs knowledge, like understanding cpu and memory efficiency concepts and bad practices
@lardosian
@lardosian 5 месяцев назад
@@savagemode2150 Must give it a go also, are you using Rust in your day job?
@Daniel_WR_Hart
@Daniel_WR_Hart 3 месяца назад
That's probably because Rust is primarily meant for low-level programming, while Python is the extreme exact opposite
@matress-4-2323
@matress-4-2323 5 месяцев назад
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 5 месяцев назад
All great ideas! Thanks for the suggestions!
@callanambulancebutnotforme5702
@callanambulancebutnotforme5702 5 месяцев назад
more rust pls
@awesome-coding
@awesome-coding 5 месяцев назад
Will post more for certain!
@kunodragon4355
@kunodragon4355 5 месяцев назад
Kind of felt like the video was inconclusive. Still, thank you for the peek into Rust!
@awesome-coding
@awesome-coding 5 месяцев назад
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 5 месяцев назад
Great video. I would also appreciate the most common way, to solve the compilation error at 4:34
@awesome-coding
@awesome-coding 5 месяцев назад
Thanks for the feedback! I'm planning more "Snippet" videos, and solving borrow checker errors will be addressed for certain!
@crasite
@crasite 5 месяцев назад
You can pass in get_polite(name.clone()). This create a copy of that data and pass it in.
@codelucky
@codelucky 5 месяцев назад
Rust is exciting for a specific purpose.
@awesome-coding
@awesome-coding 5 месяцев назад
👍
@nexxai
@nexxai 5 месяцев назад
Would love to learn more about Rust. Please post more!
@awesome-coding
@awesome-coding 5 месяцев назад
Will do! Thanks for the input!
@Lucs-ku5cb
@Lucs-ku5cb 5 месяцев назад
Make a video about Web Assembly in Rust pls
@awesome-coding
@awesome-coding 5 месяцев назад
Will do - it's on my list. Thanks for the input!
@PierreChevallier
@PierreChevallier 5 месяцев назад
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 5 месяцев назад
You are right - thanks for the suggestion!
@rssszz7208
@rssszz7208 5 месяцев назад
Currently learning c++ and this come in recommendation😮
@awesome-coding
@awesome-coding 5 месяцев назад
Funny how YT recommendations work.
@Leonhart_93
@Leonhart_93 4 месяца назад
Keep learning C++
@Rtzoor
@Rtzoor 5 месяцев назад
deep dive on the double!
@JR-hb6jr
@JR-hb6jr 5 месяцев назад
Can you do one by making a small real world tool?
@awesome-coding
@awesome-coding 5 месяцев назад
Sure thing! Coming soon!
@alejandroj.mendezc.981
@alejandroj.mendezc.981 5 месяцев назад
Rust Rules!
@nm6x
@nm6x 5 месяцев назад
Lifetimes! Please help me with lifetimes!
@awesome-coding
@awesome-coding 5 месяцев назад
Added it to the list!
@riigel
@riigel 5 месяцев назад
yeaaaa count me in lol
@rhythmblues2069
@rhythmblues2069 5 месяцев назад
good video mate
@awesome-coding
@awesome-coding 5 месяцев назад
Thank you!
@TheTmLev
@TheTmLev 5 месяцев назад
I don't think starting the video by explaining macros is a good idea...
@TheTmLev
@TheTmLev 5 месяцев назад
Yeah... I'd definitely use some other examples for a quick look at the language
@awesome-coding
@awesome-coding 5 месяцев назад
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 5 месяцев назад
@@awesome-coding That really put me off Java as well, I sitched to Python and was much happier.
@riigel
@riigel 5 месяцев назад
Rust!!!
@zcuric
@zcuric 5 месяцев назад
Throwing bone to ThePrimeagen for views. Just kidding, great video!
@awesome-coding
@awesome-coding 5 месяцев назад
😂 Trust me, I'll do way worse things for views 😅
@howdyimflowey4341
@howdyimflowey4341 5 месяцев назад
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 5 месяцев назад
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.
@rssszz7208
@rssszz7208 5 месяцев назад
Rust look hard then c++😂
@awesome-coding
@awesome-coding 5 месяцев назад
Yes, I believe this to be true 😅
@ashleyfreebush
@ashleyfreebush 5 месяцев назад
I do not think i can keep up with this..😅
@awesome-coding
@awesome-coding 5 месяцев назад
😂✌️
@damiangilz
@damiangilz 5 месяцев назад
All my low level friends quit Rust, so I wont even touch it.
@awesome-coding
@awesome-coding 5 месяцев назад
I am curious to know why :D
@bear458ziif-s
@bear458ziif-s 5 месяцев назад
@@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 4 месяца назад
Yeah, too many guardrails which require jumping through many hoops for stuff other programming languages handle seamlessly.
@damiangilz
@damiangilz 4 месяца назад
@@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.
@siya.abc123
@siya.abc123 5 месяцев назад
Rust syntax is the only reason I'm not interested in writing it.
@awesome-coding
@awesome-coding 5 месяцев назад
I agree it's pretty over the top, especially if your background is in a language like Java.
@Niksorus
@Niksorus 5 месяцев назад
Moar please 😊 I am so happy to learn that you're unemployed (and a bit sorry too)
@cslearn3044
@cslearn3044 5 месяцев назад
The second a frikin usa government recommended people to use rust, i completely stopped using rust
@awesome-coding
@awesome-coding 5 месяцев назад
😂 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 🤦‍♂️
@cryptonative
@cryptonative 5 месяцев назад
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 5 месяцев назад
Leptos is a pretty good solution for web dev :)
@cryptonative
@cryptonative 5 месяцев назад
@@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
@krateskim4169
@krateskim4169 5 месяцев назад
If you are still unemployed, then I'm fu*ked(searching for a job)
@jurienhamaker
@jurienhamaker 5 месяцев назад
third
@Peacemaker.404
@Peacemaker.404 5 месяцев назад
first ❤
@awesome-coding
@awesome-coding 5 месяцев назад
✌️
@CultKosmosa
@CultKosmosa 4 месяца назад
bbad and uninformative, total waaste of time
@awesome-coding
@awesome-coding 4 месяца назад
Sorry to hear that. I'd like to know what can be improved if you are willing to share that.
@CultKosmosa
@CultKosmosa 4 месяца назад
@@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
@krellin
@krellin 5 месяцев назад
fuck rust, do zig
@awesome-coding
@awesome-coding 5 месяцев назад
Great! Now I have to spend another 3 months reading books on another language?! :))
@an-eios7125
@an-eios7125 5 месяцев назад
@@awesome-coding Zig is just C with some extra stuff. Some might call it C++
@matress-4-2323
@matress-4-2323 5 месяцев назад
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 5 месяцев назад
@@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 5 месяцев назад
@@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.
@jellyfish1772
@jellyfish1772 5 месяцев назад
This is not complicated
@awesome-coding
@awesome-coding 5 месяцев назад
Famous last words :D
@stone-snare
@stone-snare 4 месяца назад
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 4 месяца назад
Great idea! I'll look into it - thanks!
@cariyaputta
@cariyaputta 5 месяцев назад
Rust is a joy to code in. And the official documentation is great.
@LetrixAR
@LetrixAR 5 месяцев назад
I enjoy using Tauri that uses a Rust backend with a JS frontend
@awesome-coding
@awesome-coding 5 месяцев назад
I hear great things about Tauri!
@gavenblsn4753
@gavenblsn4753 5 месяцев назад
interested, please more rust. thank you
@awesome-coding
@awesome-coding 5 месяцев назад
More to come!
@larsartmann
@larsartmann 5 месяцев назад
2:33 Go back to Java 😂
@awesome-coding
@awesome-coding 5 месяцев назад
😅 Java never disappoints!
@r2_rho
@r2_rho 5 месяцев назад
We need more rust videos!
@awesome-coding
@awesome-coding 5 месяцев назад
More to come!
@GenericInternetter
@GenericInternetter 5 месяцев назад
Rust looks awful.
@RegrinderAlert
@RegrinderAlert 5 месяцев назад
*awesome 😎
@awesome-coding
@awesome-coding 5 месяцев назад
😅
@vanessaarrey8165
@vanessaarrey8165 5 месяцев назад
dont_panic.unwrap()
@awesome-coding
@awesome-coding 5 месяцев назад
😅
Далее
Kotlin First Impressions
3:45
Просмотров 13 тыс.
Web Dev The Right Way
12:35
Просмотров 23 тыс.
CORTE DE CABELO RADICAL
00:59
Просмотров 1,7 млн
TEAM SPIRIT: НОВЫЙ СОСТАВ. SEASON 24-25
01:31
Новый вид животных Supertype
00:59
Просмотров 138 тыс.
All Rust features explained
21:30
Просмотров 310 тыс.
Learn Git in 10 Minutes
10:46
Просмотров 9 тыс.
The Rust Standard Library is SO Confusing...Until Now!
11:45
You Should Really Know These Traits in Rust
18:36
Просмотров 14 тыс.
Rust and RAII Memory Management - Computerphile
24:22
Просмотров 228 тыс.
Where is Rust being used?
11:46
Просмотров 85 тыс.
Rust: When C Code Isn't Enough
8:26
Просмотров 166 тыс.
The Rust Survival Guide
12:34
Просмотров 149 тыс.
Async Rust Is A Bad Language | Prime Reacts
28:46
Просмотров 97 тыс.