Rust - Simple Code Layout (start simple, scale better)

preview_player
Показать описание
Here is a quick Rust Programming base code layout that I use for most of my new Rust projects.

Jeremy Chone:

Other popular Rust Programming videos:

Playlists:

Jeremy Chone:

Рекомендации по теме
Комментарии
Автор

Lets take a minute to appreciate good quality content like this ❤

SchlangeBob
Автор

Oh my god, this tutorial should be in the first chapters of Rust Lang Book. So simple and clear, you just blew my mind off. Thank you so much, you just got a new subscriber!

alexkarav
Автор

I could never find a video explaining a good way to begin to structure a Rust project. This seems like a great way of doing so. Thanks for such a simple and understandable video!

hughesd.mungus
Автор

I thought this is just another video that shows how module in rust works, until that tryfrom method, i fell like a beginner now, thank you so much for the video!

vintagewander
Автор

Omg I love that wrapper pattern, it's like extension methods in kotlin but a little more explicit! I think I'll try naming my wrappers after the crate cause I find W a little mysterious, but I'm definitely using this

eignnx_
Автор

You earned my subscription in the first 90 seconds. Lots of useful productivity tips, love it!

dr-maybe
Автор

Thanks for this! Most tutorials asume you know the basic structure. this is so helpful!

zzej
Автор

This is one of the best Rust intro videos that I've ever seen. Thank you!

walis
Автор

Really good presentation style. I would love to see more of this for different patterns i.e builder. Anyhow thanks for great content.

learnityourself
Автор

Awesome, thanks for this.
Which tool do you use to annotate those lines on the screen?

codeshowbr
Автор

If you don't want to be using a wrapper, you can also simply define your own trait with the appriopriate function and implement it for the extern struct. It is cleaner that way in my opinion but i guess it's a matter of preferences

ChezSwiiz
Автор

Content and presentation is superb. Thank you.

hv
Автор

This is so awesome and very practical. Thank you!

dragonmax
Автор

very helpful especially that wrapper pattern

gduan
Автор

Thank you ! I learn something in all of your videos, this is amazing. I have one question regarding your custom Error and Result. Why not change their name to be able to differenciate them from the ones of the std library (For ex MyError and MyResult)?
Is this just personal preference or is there a deeper reason I am missing?

gabrielcournelle
Автор

OMG! I'm loving the French accent! 🥐☕😀

cryptopatrick
Автор

The creation of a utils module i would say is an anti pattern, you could would be more readable and clean fitting the utils with related code. Give me your thoughts about it

ChezSwiiz
Автор

Excellent videos thanks! Do any of your other videos show examples of using the newtype wrapper pub struct W<T>(pub T); for trait implementations? Thanks.

mikehoughton
Автор

I love your videos. you have taught me so me great little rust tricks and patterns. Keep up the great work!

jaredthanemartin
Автор

O! that is so useful! Thank you so much!

jacekm.