Rust First Impressions
HTML-код
- Опубликовано: 2 окт 2024
- 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...
Being a former C++ developer myself really helps learning Rust. It cannot be more complicated than C++ 😂😂😂
That might be the only advantage of C++ - it makes everything else feel reall easy 😅
@@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.
I hear Haskell is another helper
Just give it some time, and we will see
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.
As a JavaScript developer this just fries my brain.
:)) 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.
+1 😅
@@awesome-coding yea I am learning Go. My college project is in go
@@jitxhere Did you see my Go introduction video? :D
ruclips.net/video/E7pxGyEcPNI/видео.htmlsi=4uwMFklp2sSW9i40
@@awesome-coding yes awesome video :)
It would be nice to have a descriptive title that tells the video is part of the series. Would love to watch more.
Thank you for your suggestion! I'll try to make some changes :D
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.
rust mentioned let's goooooooo 🔥
Now I just have to wait for the hundreds of thousands of views 😅
more rust pls
Will post more for certain!
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.
Fair points.
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
Plus rust really improved my cs knowledge, like understanding cpu and memory efficiency concepts and bad practices
@@savagemode2150 Must give it a go also, are you using Rust in your day job?
That's probably because Rust is primarily meant for low-level programming, while Python is the extreme exact opposite
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.
All great ideas! Thanks for the suggestions!
Kind of felt like the video was inconclusive. Still, thank you for the peek into Rust!
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.
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.
Great idea! I'll look into it - thanks!
I don't think starting the video by explaining macros is a good idea...
Yeah... I'd definitely use some other examples for a quick look at the language
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 :)
@@awesome-coding That really put me off Java as well, I sitched to Python and was much happier.
Rust is a joy to code in. And the official documentation is great.
Great video. I would also appreciate the most common way, to solve the compilation error at 4:34
Thanks for the feedback!
I'm planning more "Snippet" videos, and solving borrow checker errors will be addressed for certain!
You can pass in get_polite(name.clone()).
This create a copy of that data and pass it in.
I enjoy using Tauri that uses a Rust backend with a JS frontend
I hear great things about Tauri!
Rust is exciting for a specific purpose.
👍
bbad and uninformative, total waaste of time
Sorry to hear that. I'd like to know what can be improved if you are willing to share that.
@@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
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.
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.
If you are still unemployed, then I'm fu*ked(searching for a job)
Make a video about Web Assembly in Rust pls
Will do - it's on my list.
Thanks for the input!
interested, please more rust. thank you
More to come!
I do not think i can keep up with this..😅
😂✌️
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...
You are right - thanks for the suggestion!
Rust look hard then c++😂
Yes, I believe this to be true 😅
The second a frikin usa government recommended people to use rust, i completely stopped using rust
😂 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 🤦♂️
All my low level friends quit Rust, so I wont even touch it.
I am curious to know why :D
@@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.
Yeah, too many guardrails which require jumping through many hoops for stuff other programming languages handle seamlessly.
@@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.
Throwing bone to ThePrimeagen for views. Just kidding, great video!
😂 Trust me, I'll do way worse things for views 😅
Lifetimes! Please help me with lifetimes!
Added it to the list!
yeaaaa count me in lol
Rust syntax is the only reason I'm not interested in writing it.
I agree it's pretty over the top, especially if your background is in a language like Java.
Would love to learn more about Rust. Please post more!
Will do! Thanks for the input!
Can you do one by making a small real world tool?
Sure thing! Coming soon!
first ❤
✌️
deep dive on the double!
Rust!!!
Currently learning c++ and this come in recommendation😮
Funny how YT recommendations work.
Keep learning C++
Rust Rules!
third
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
Leptos is a pretty good solution for web dev :)
@@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
This is not complicated
Famous last words :D
We need more rust videos!
More to come!
good video mate
Thank you!
Moar please 😊 I am so happy to learn that you're unemployed (and a bit sorry too)
fuck rust, do zig
Great! Now I have to spend another 3 months reading books on another language?! :))
@@awesome-coding Zig is just C with some extra stuff. Some might call it C++
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.
@@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.
@@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.
2:33 Go back to Java 😂
😅 Java never disappoints!
Rust looks awful.
*awesome 😎
😅
dont_panic.unwrap()
😅