Deref and Drop Traits - Rust

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 18

  • @davec8385
    @davec8385 2 ปีที่แล้ว +1

    Great to see the videos back. The outro music is also a nice touch

  • @calisti9308
    @calisti9308 2 ปีที่แล้ว +1

    Your style is fantastic! Instant subscribe

  • @lordsixth5944
    @lordsixth5944 2 ปีที่แล้ว +2

    Great To See You buddy

  • @arya_bakh
    @arya_bakh 2 ปีที่แล้ว +1

    Ma Boy is back !

  • @iamgabrielsoft5891
    @iamgabrielsoft5891 2 ปีที่แล้ว

    Great to see you back 🎉

  • @shadowxp951
    @shadowxp951 2 ปีที่แล้ว +3

    Could you also cover on AsRef and Borrow trait as well?

    • @danlogs
      @danlogs  2 ปีที่แล้ว +4

      I hadn’t considered covering that, but I think it’s a great idea! I’ll add it to my list of planned videos ~ Thanks ;D

    • @calisti9308
      @calisti9308 2 ปีที่แล้ว

      @@danlogs that would really be a good idea! The AsRef story keeps on being confusing ;)

    • @danlogs
      @danlogs  2 ปีที่แล้ว

      Hey, Suramerai! I've finally gotten around to making the video you requested. Here it is: th-cam.com/video/4YAmpHMl1Z0/w-d-xo.html ~ I hope it helps (:

    • @danlogs
      @danlogs  2 ปีที่แล้ว +1

      @@calisti9308 ~ I mentioned this in a comment below, but, just in case you don't get notified for that, I just wanted to let you know I just got around to covering this topic in my latest video. You can check it out here: th-cam.com/video/4YAmpHMl1Z0/w-d-xo.html

    • @leonie9248
      @leonie9248 2 ปีที่แล้ว

      @@danlogs thank you!!

  • @GlobalYoung7
    @GlobalYoung7 2 ปีที่แล้ว

    Thank you 😊

  • @cryptopatrick
    @cryptopatrick 2 ปีที่แล้ว

    Hi! Really liking your videos - you're great at explaining things!
    Would you mind recommending a few programming books that you really like?
    Thanks in advance and have a great weekend!

    • @danlogs
      @danlogs  2 ปีที่แล้ว

      Thank you so much! I'm glad you're enjoying the videos (:
      Now, about your question... Are you asking about 𝙖𝙣𝙮 programming book? Like, regardless of topic?
      Assuming that's what you want, I think my current favourite programming book is called: "Programming from the Ground Up" by Jonathan Bartlett, so I definitely recommend it.
      Now, if you're watching this series, you can probably tell I really like "The Rust Programming Language" book by Steve Klabnik and Carol Nichols, sooo... There's another recommendation 😆
      Another one of my favourites is definitely "21st Century C: C Tips from the New School" by Ben Klemens - This is an absolute gem.
      Other than that, I've recently read:
      - "Practical Rust Projects" by Shing Lyu, and
      - "WebAssembly In Action" by Gerard Gallant.
      ... and they were both a fun time too!
      I hope this answers your question, and I hope you're having great week!

    • @cryptopatrick
      @cryptopatrick 2 ปีที่แล้ว

      @@danlogs Oh, man! This was absolutely perfect!! Thank you so much!!!
      I will definitely check out these books - looks like I got my hands full for the rest of the summer. :D
      Wishing you all the best and a great summer! Cheers!

  • @danielegger6460
    @danielegger6460 2 ปีที่แล้ว +3

    Your explanations of associated types would make a ton more sense if you were actually using them somewhere. Same goes for your generic traits which don't even use the generic types; your code would be even cleaner if you simply completely removed all of those, rather than converting them to associated types 😂. Curiously enough the Rust compiler doesn't complain about unused generics in traits, it would though if you had them in types.

    • @danlogs
      @danlogs  2 ปีที่แล้ว +1

      That's fair. The purpose of that aside was to just sorta approach explaining associated types as a way to make code look cleaner (i.e., with 𝚏𝚗 𝚢_𝚍𝚒𝚏𝚏(𝚌𝚘𝚘𝚛_𝟷: &𝙲, 𝚌𝚘𝚘𝚛_𝟸: &𝙲) -> 𝚒𝟹𝟸 𝚠𝚑𝚎𝚛𝚎 𝙲: 𝙲𝚘𝚘𝚛𝚍𝚒𝚗𝚊𝚝𝚎 (using generics) vs. 𝚏𝚗 𝚢_𝚍𝚒𝚏𝚏(𝚌𝚘𝚘𝚛_𝟷: &𝙲, 𝚌𝚘𝚘𝚛_𝟸: &𝙲) -> 𝚒𝟹𝟸 (using associated types)). In any case, I'll see if I can sneak in some more associated types with better context in future videos to further explain the concept. Thank you for your feedback!

  • @Randych
    @Randych ปีที่แล้ว +1

    Content seems alright, but from sound perspective it's very tiresome on the ears.