Deref and Drop Traits - Rust

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 18

  • @davec8385
    @davec8385 2 года назад +1

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

  • @lordsixth5944
    @lordsixth5944 2 года назад +2

    Great To See You buddy

  • @calisti9308
    @calisti9308 2 года назад +1

    Your style is fantastic! Instant subscribe

  • @iamgabrielsoft5891
    @iamgabrielsoft5891 2 года назад

    Great to see you back 🎉

  • @arya_bakh
    @arya_bakh 2 года назад +1

    Ma Boy is back !

  • @GlobalYoung7
    @GlobalYoung7 2 года назад

    Thank you 😊

  • @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  Год назад

      Hey, Suramerai! I've finally gotten around to making the video you requested. Here it is: ruclips.net/video/4YAmpHMl1Z0/видео.html ~ I hope it helps (:

    • @danlogs
      @danlogs  Год назад +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: ruclips.net/video/4YAmpHMl1Z0/видео.html

    • @leonie9248
      @leonie9248 Год назад

      @@danlogs thank you!!

  • @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!

  • @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!

  • @Randych
    @Randych 9 месяцев назад +1

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