Getting familiar with Rust's syntax
5:08
Rust Lifetimes explained Tutorial
14:35
Пікірлер
@rajaramhasure5659
@rajaramhasure5659 Күн бұрын
Thank you jijas 🙌🤗 aamin I love you Yesu 🙏💐 aamin dhanyavad Yesu
@romankhairov
@romankhairov 3 күн бұрын
Bro, you did a great job! Thank you! It was a lot of the tutorials about Astradb and Datastax, but after update many things have changed. Only your tutorial made my RAG app work. Thats awesome!
@JohnzeraDEV
@JohnzeraDEV 8 күн бұрын
YOU SAVED MY LIFE! YOU CAN'T IMAGINE HOW MUCH BUT YOU DID IT!! THANK YOU!! I'm from Brazil and I was really amazed how much you made yourself understood! Keep going!!!
@sophyia4358
@sophyia4358 9 күн бұрын
Love this!
@GHOSTSHORT-2m
@GHOSTSHORT-2m 9 күн бұрын
G
@davidlanday2647
@davidlanday2647 9 күн бұрын
The implementation is similar in many languages, why would rust be a "smart choice for developers" (over another language) as you state in your description? I can see it being useful if you create an abstract type (using enums) which encapsulated the three conditions in the task, and then using a single match clause, but otherwise are there any other benefits?
@francescociulla
@francescociulla 9 күн бұрын
hey Davide! Aside from enums and pattern matching, Rust offers memory safety without garbage collection, fearless concurrency, and a growing ecosystem. These make it ideal for building safe, high-performance, and scalable software. I already talked about some of these concepts and will do the rest soon
@davidlanday2647
@davidlanday2647 9 күн бұрын
@@francescociulla Thanks for the reply. I have been coding in Rust for almost a year now, and I am appreciative of the benefits you laid out. I have been really enjoying using Rust at work. I guess I was wondering what the benefits were in the specific coding example featured in this video. Seems like the solution you implemented using an if-else conditional statement and modulus of arithmetic would be the same in any programming language. I was just pointing out that in your description (which isn't there now), it said Rust was a "smart choice" and I thought that you were saying in the context of the fizz-buzz problem that Rust would be the "smart choice"
@hikmatillohtokhirov914
@hikmatillohtokhirov914 10 күн бұрын
Thank you very much
@francescociulla
@francescociulla 9 күн бұрын
you are welcome
@MarilynBeltran-v9k
@MarilynBeltran-v9k 13 күн бұрын
g
@Iras_Mark
@Iras_Mark 14 күн бұрын
7:04 42:02
@nikeboys3134
@nikeboys3134 15 күн бұрын
what is autocomplite code?
@francescociulla
@francescociulla 9 күн бұрын
it's GitHub Copilot
@codeera9032
@codeera9032 16 күн бұрын
For me one of the reason why i prefer docker approach is it makes cloning and running it locally makes bugs free and avoid it works on my machine and it doesn't all together
@francescociulla
@francescociulla 16 күн бұрын
exactly!
@abulbasar5890
@abulbasar5890 17 күн бұрын
😮😢🎉😂revolbing.aromatic.phy.dicb msxhgbcjcjhxhdh
@SaniddhyaDubey
@SaniddhyaDubey 17 күн бұрын
Too good man, my first ever rust project!
@francescociulla
@francescociulla 16 күн бұрын
Glad to hear it!
@yxyk-fr
@yxyk-fr 18 күн бұрын
9:19 I realise that .chars should have been called .points since it's the actual name used by Unicode. And then points get combined, as you show... Unicode is tricky !!!
@francescociulla
@francescociulla 16 күн бұрын
Thanks for pointing it out (pun word intended)
@yxyk-fr
@yxyk-fr 15 күн бұрын
@@francescociulla well done ;-)
@ossurf
@ossurf 19 күн бұрын
Big Frankyyyyyyy
@francescociulla
@francescociulla 16 күн бұрын
eccolo!!!
@ossurf
@ossurf 19 күн бұрын
manca poo ai 300.000!
@francescociulla
@francescociulla 16 күн бұрын
quasi!
@ossurf
@ossurf 19 күн бұрын
Francesco n. 1!!!!!!!!!
@francescociulla
@francescociulla 16 күн бұрын
ecco il secco!
@antoniong4380
@antoniong4380 19 күн бұрын
The way you explain Return and lifetimes might cause misunderstanding.
@antoniong4380
@antoniong4380 19 күн бұрын
Return are optional keywords. Can be used to do an early return instead of "There's no return keyword". Or rather, it should've been "Has implicit return" Lifetimes analogy would make more sense if you say "I can't leave yet because you have my 'ticket plane'" instead of "You haven't returned my book" This (oversimplified) implies that an action can't be done because the green-ticket to do something is currently held by someone else. Also, the example of the function isn't really helpful. It is more relevant to the callsite, instead of the function body. In the context of the function, the return lifetime will be the overlapping range(or shortest lifetime) of both parameters. This nuance, however only matters to the callsite, and is easier to see why lifetime would matter.
@francescociulla
@francescociulla 18 күн бұрын
Hey Antonio, yes you are correct. I use the return keyword and I thought this was more to show the beginners the best practice, but yes, there's the return keyword in Rust and I probably will make a comment about this. About lifetimes, that's a nice analogy, I should have used it. Thanks for taking the time to write this!
@Nickforu
@Nickforu 19 күн бұрын
Ohhh i miss this live
@francescociulla
@francescociulla 16 күн бұрын
We missed you!
@xl0xl0xl0
@xl0xl0xl0 19 күн бұрын
Is this video AI-generated?
@francescociulla
@francescociulla 19 күн бұрын
no it's me reading and there is an editor
@Zhwazi
@Zhwazi 19 күн бұрын
1:58 Rust has a return keyword. Returns are implicit at the end of a function, and leaving them implied at the end is idiomatic, but early returns still use the return keyword.
@francescociulla
@francescociulla 19 күн бұрын
you are right! I think this is the best way to introduce it to the beginners, but thanks for pointing it out!
@abhyastimemahabharat
@abhyastimemahabharat 20 күн бұрын
Hi Francesco, thanks for sharing. Can you please share career scope of Actix Web in usa, india. And comparing between Actix Web and express. And what other rust package is used in industry to get job and must be read for good engineer. Thanks 🙏🏻👍🏻
@francescociulla
@francescociulla 16 күн бұрын
interesting topic, thnak you!
@AlfredSLotsu
@AlfredSLotsu 20 күн бұрын
I have been gone for a while, can't wait to catch up!
@francescociulla
@francescociulla 16 күн бұрын
videos are gonna stay, no worries!
@ok-alarm
@ok-alarm 21 күн бұрын
still struggling with lifetimes and some ownership rules. 😅
@francescociulla
@francescociulla 16 күн бұрын
I can feel you, have you checked the dedicated videos?
@Dev-Dojo-channel
@Dev-Dojo-channel 21 күн бұрын
Respected sir, please make the rust series from begginer to advanced. You are a phenomenal teacher 🎉🎉🎉. Please do it.
@francescociulla
@francescociulla 16 күн бұрын
Hi dev dojo. Here si the playlist you are looking for: kzbin.info/aero/PLPoSdR46FgI412aItyJhj2bF66cudB6Qs
@Dev-Dojo-channel
@Dev-Dojo-channel 15 күн бұрын
@francescociulla I already started following it. It's a 💎. Thank you Sir.🙏
@Dev-Dojo-channel
@Dev-Dojo-channel 15 күн бұрын
@francescociulla add some real world projects SIR, please 🙏
@Brocodefound1677
@Brocodefound1677 21 күн бұрын
Finally here 😃 Francesco where is the practise excercise?
@francescociulla
@francescociulla 16 күн бұрын
what do you mean?
@nerd3131
@nerd3131 21 күн бұрын
github copilot confused me often
@francescociulla
@francescociulla 16 күн бұрын
thanks for the feedback, it's just a style and it makes me be quick in typing, but I always try to explain line by line . Hope you understood the big picture
@pranavgor7278
@pranavgor7278 21 күн бұрын
meanwhile me suing the eclipse and spring tool suite ☠
@francescociulla
@francescociulla 16 күн бұрын
lol why?
@pranavgor7278
@pranavgor7278 11 күн бұрын
@@francescociulla cause i am used
@azharalibhutto1209
@azharalibhutto1209 26 күн бұрын
Great work ❤❤❤❤
@francescociulla
@francescociulla 24 күн бұрын
Thank you!!!
@franckozeusmakita7022
@franckozeusmakita7022 27 күн бұрын
hallo Francisco! i did the same thing with mysql, but my container is always exited. can you tell me please why. mysqldbbb: container_name: mysqldbbb image: mysql:latest ports: - 3307:3307 environment: MYSQL_USER: mysql MYSQL_PASSWORD: mysql MYSQL_DB: mysql volumes: - mysqldb:/var/lib/mysql
@amanpatell
@amanpatell 27 күн бұрын
Smooth as butter. Thanks 💓
@francescociulla
@francescociulla 24 күн бұрын
you are welcome!
@amanpatell
@amanpatell 24 күн бұрын
@@francescociulla would you consider making spring boot tutorial? Loved your explanation.
@HodanAbdi-vu8gl
@HodanAbdi-vu8gl Ай бұрын
ChatGbt Recommend me to watch this tutorial 🫡
@AxaLord-mg7rz
@AxaLord-mg7rz Ай бұрын
thank youu for this tutorial I found the best course with you
@francescociulla
@francescociulla 24 күн бұрын
you are welcome!
@KingCobraYT01
@KingCobraYT01 Ай бұрын
How to make windows GUI application using rust
@francescociulla
@francescociulla Ай бұрын
Hey KingCobra. To create a Windows GUI application in Rust, you can use libraries like iced, druid, or fltk-rs. These libraries provide cross-platform support, making it easier to design and build native-looking UIs. For a Windows-specific approach, winapi and windows-rs give you direct access to Windows APIs, although they're more complex to use.
@KingCobraYT01
@KingCobraYT01 Ай бұрын
@francescociulla how you remember the rust Syntex? For example GUI Update Logic In java very easy Syntex 🤔
@KingCobraYT01
@KingCobraYT01 Ай бұрын
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame)
@sobhandz5250
@sobhandz5250 Ай бұрын
i clone your project from github but run i get this error djangoapp | exec /app/django.sh: no such file or directory djangoapp exited with code 1
@JitGupta-l6d
@JitGupta-l6d Ай бұрын
Hi Franceso, I am new to Rust programming. Thank you very much for the awesome videos! I have a question about String and &str. Would appreciate, if you can clarify, when you have a time. let x = "Hello"; let y = x; println!("{x}"); // here it will compile, why? println!("{y}"); let s1 = String:: from("Hello"); let s2 = s1; println!("{s1}"); // will not compile as s1 went out of scope println!("{s2}");
@francescociulla
@francescociulla Ай бұрын
Thanks for your question! x is a &str (string slice), which implements the Copy trait, so both x and y can be used after the assignment. s1 is a String (owned type). When s1 is assigned to s2, ownership moves to s2, making s1 invalid, which is why println!("{s1}") won’t compile. you can also check this video about strings I made kzbin.info/www/bejne/fXyceq2Vns2gjJo
@JitGupta-l6d
@JitGupta-l6d Ай бұрын
@@francescociulla Thanks Francesco! You are doing an awesome service. Will watch the linked video now. Thanks once again!
@RwandaBruno
@RwandaBruno Ай бұрын
Thanks for this video 🥰🥰, can you make full course on actix 🙏🏽🙏🏽
@francescociulla
@francescociulla Ай бұрын
it's on the todo list! What kind of tpics you'd like me to cover?
@RwandaBruno
@RwandaBruno Ай бұрын
@@francescociulla cover on the middleware
@francescociulla
@francescociulla Ай бұрын
@RwandaBruno good idea
@Konstantsmusic
@Konstantsmusic 22 күн бұрын
@@francescociulla actix->diesel->postgres would be good(personallly for me as i have a requirement for that). Also i have experience in spring boot which follows controller/service/repository structure for project. I have started on rust with last week only but havent found something with good folder structure that modularise the application and make it easy to understand each layer of it. Thankyou
@sum1t_here
@sum1t_here Ай бұрын
Is a series being cooked!?
@francescociulla
@francescociulla Ай бұрын
maybe, it depends if the video will perfom well, but I am definitively interested in exploring web development with Rust. Would you be interested in that?
@glapaxy
@glapaxy Ай бұрын
​@@francescociulla Absolutely ❤
@francescociulla
@francescociulla Ай бұрын
@glapaxy let's see! I really like this part in Rust!
@glapaxy
@glapaxy Ай бұрын
@@francescociulla In hebrew RuST (רשת) means "network" and "to network". Nomen est Omen! Thank you very much for your Work for "the network".
@francescociulla
@francescociulla Ай бұрын
@glapaxy I didn't know that! Thanks for the explanation
@sum1t_here
@sum1t_here Ай бұрын
Francesco is here ❤
@francescociulla
@francescociulla Ай бұрын
hey there! Yes I am!
@francescociulla
@francescociulla Ай бұрын
What do you think about Actix??
@abdulcodes
@abdulcodes Ай бұрын
Your views on Axum
@francescociulla
@francescociulla Ай бұрын
I already made Rocket and this was the second one. The next one is def Axum and I'll share my opinions on it
@HaiderKhan-6410
@HaiderKhan-6410 Ай бұрын
❤️ ❤️ ❤️ ❤️❤️ ❤️
@francescociulla
@francescociulla Ай бұрын
🔥🔥
@francescociulla
@francescociulla Ай бұрын
Rust Tutorial series: kzbin.info/www/bejne/iGSWmWpto9eAp8U Advanced videos: Rust CRUD API: kzbin.info/www/bejne/rJmxoJx4hNqKb5Y Rust FullStack App: kzbin.info/www/bejne/bWi1m62AqaiSnZY
@dailydotdev
@dailydotdev Ай бұрын
🐳🐳🐳🐳
@dailydotdev
@dailydotdev Ай бұрын
🏃‍♂🏃‍♂