7 Features in Kotlin's Standard Library that You Might Have Overlooked

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

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

  • @smreha
    @smreha 5 месяцев назад +20

    The observer delegates are a godsend.

    • @TimSchraepen
      @TimSchraepen 5 месяцев назад +4

      Are they mostly used in frontend frameworks? Like android or compose?
      Would love to see some use cases for backend development too.
      Maybe some caching implementations?

    • @pnavais
      @pnavais 4 месяца назад +1

      Dave and his channel are the actual godsend

    • @HoussamElbadissi
      @HoussamElbadissi 3 месяца назад +1

      @@TimSchraepen Probably not much, and they're probably not that popular, never seen them used in an Android app, I was quite surprised that this was built-in!

  • @guyguy467
    @guyguy467 5 месяцев назад +8

    Very nice. Thanks for sharing.

    • @typealias
      @typealias  5 месяцев назад +3

      Thanks so much, Guy!

  • @osisuper98
    @osisuper98 5 месяцев назад +2

    This right here is gold, Dave. You are awesome!

  • @Snirokok
    @Snirokok 4 месяца назад

    I dont understand why I need to remember that lazy is located separately from other standard Delegates. Really inspiring video.

  • @DaleHawkins
    @DaleHawkins 5 месяцев назад +7

    Thanks!

    • @typealias
      @typealias  5 месяцев назад +4

      Hey, awesome - thanks so much, Dale! This is the very first Super Thanks on this channel! ✨🎉😁🙏

  • @QuantuMGriD
    @QuantuMGriD 5 месяцев назад +8

    Can we see about, all 23 design patterns from the gang of four some time in the future? 🙂 And more other design patterns that are lesser known but are awesome!? Looking forward ❤

    • @typealias
      @typealias  5 месяцев назад +14

      Thanks for the recommendation! I'll add this to the list of ideas for videos! I've had a lot of people asking about design patterns and principles, so I'd say there's a good chance I'll get to them!

    • @QuantuMGriD
      @QuantuMGriD 5 месяцев назад +2

      Awesome 🎉 Thankyou for the consideration! 😊

    • @smreha
      @smreha 5 месяцев назад +2

      ​@@typealias looking forward to it. 👀😁

  • @fahim.m.choudhury
    @fahim.m.choudhury 5 месяцев назад +1

    Very useful tips, thanks Dave! I so often find myself using mutableList and manual null checks. No more doing these from now on!

    • @typealias
      @typealias  5 месяцев назад +1

      You're most welcome, Fahim! I'm so glad you found it helpful!

  • @damercy
    @damercy 4 месяца назад

    I just want to say, thank you for these videos. Really love your clear, concise explanation. Keep posting!

    • @typealias
      @typealias  4 месяца назад +1

      Thank you! I'm so glad you've been enjoying them. I'll keep at it!

  • @Alchemist10241
    @Alchemist10241 5 месяцев назад +2

    this video was extremely informative an useful.
    please make a deep dive video about delegates if you haven't made one already.

    • @typealias
      @typealias  5 месяцев назад +2

      Thanks so much! I'll add that to the list of future video topics. I actually had done a video that showcased property delegates a while back, using Android's shared preferences (Shared Preferences has since been deprecated in favor of DataStore). You might still enjoy watching it just to see how delegates work, though: ruclips.net/video/KFgb6l1PUJI/видео.html

  • @ulicqueldromal
    @ulicqueldromal 4 месяца назад

    Funfact, the default immutable list behaves different depending on the target due to compatibility. On Java you can cast it to mutable but mutation throws and exception, as per the java.util.List docs. On Javascript you can cast and modify it because Javascript doesn't have a concept of immutable list.

    • @typealias
      @typealias  4 месяца назад

      Ah, that's good to know! I hadn't tried that out on JavaScript. Thanks for sharing!

  • @TiagoDvl
    @TiagoDvl 5 месяцев назад

    Amazing work, man. Thank you!

  • @IncompleteTheory
    @IncompleteTheory 4 месяца назад

    Quite the undersubbed channel - thanks for sharing!

  • @enossalar8837
    @enossalar8837 4 месяца назад

    This channel is amazing

  • @sanlegaYT
    @sanlegaYT 5 месяцев назад +3

    I thought this was C's stdlib

    • @typealias
      @typealias  5 месяцев назад +5

      Aw, haha - that would certainly be quite confusing! 😅 I'll make sure we've got the word "Kotlin" in the title!

  • @vyrus507
    @vyrus507 5 месяцев назад +1

    what is the website link at 9:00

    • @typealias
      @typealias  5 месяцев назад +2

      You can find it here: kotlinlang.org/api/core/kotlin-stdlib/kotlin.io.encoding/encoding-with.html

    • @vyrus507
      @vyrus507 5 месяцев назад

      @@typealias thanks very much ! awesome vids