Kotlin lazy delegate - explanation and example

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

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

  • @RahulPandeyrkp
    @RahulPandeyrkp  3 года назад +5

    Learn Kotlin in 12 Minutes: ruclips.net/video/iYrgWO2oibY/видео.html

  • @jokersmith9096
    @jokersmith9096 3 года назад +8

    I just wanted to say thank you, this is incredible content.

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +1

      wow, really appreciate that! thank you

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

    Amazing and awesome. seen someone today who dive into source and explain things at peak... HAPPY TO SEE THIS EVEN IN 2023 !

  • @scottbiggs8894
    @scottbiggs8894 6 месяцев назад

    Thanks for the deeper dive into the lazy code.

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

    While we can implemented own version of lazy initialization, lazy in kotlin still saves a lot of boiler plate code. Thanks for the video.

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

    OMG this is amazing, the way you have explained just wow, TY.

  • @vengateshm2122
    @vengateshm2122 3 года назад +1

    Nicely explained with internal working.

  • @Dinesh-vg3sg
    @Dinesh-vg3sg 8 месяцев назад

    Thanks sir, I liked the way you have explained things in detail.

  • @-no-handle
    @-no-handle 3 года назад +2

    Feels like I found a Gold mine.

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

    Great simple explanation but nonetheless clear as crystal

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

    Hi Rahul , I really appreciate your knowledge and your insight on topics, which is quite very good, Thanks again.

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

    Thank you for your explanation

  • @ashishgautam2842
    @ashishgautam2842 3 года назад +1

    You are polishing us 🙏🙏

  • @BelhouchetInes
    @BelhouchetInes 3 года назад +1

    Great quality, very efficient.

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

    Incredible way to explain stuff!!

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

    Great explanation 😃

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

    great!

  • @rajeetgoyal6879
    @rajeetgoyal6879 3 года назад +2

    Great content🔥 Please consider making your videos in Dracula theme. That might be a lot more pleasing for eyes :)

  • @shutanovac
    @shutanovac 3 года назад +1

    This helped me understand the lazy delegate :-) Thanks man! Can you also talk about other delegates?

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +1

      thank you! will definitely consider other delegates :)

  • @Another0neTime
    @Another0neTime 3 года назад +1

    Great explanation!

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

    this is what I need

  • @nalinitippa5942
    @nalinitippa5942 3 года назад

    Great instruction !!

  • @nathann4291
    @nathann4291 3 года назад

    THE LEGEND

  • @droidcasts7350
    @droidcasts7350 3 года назад

    nice explanation, thank you

  • @emanalsbeiheen5619
    @emanalsbeiheen5619 3 года назад

    Thank you Rahul very helpful content 🌹.. Can you please talk about Refliction in kotlin and how to use it please...

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +1

      Sure, can add reflection to my list. I don't use it too frequently though

  • @matt-g-recovers
    @matt-g-recovers Год назад

    Subbed

  • @SuboptimalEng
    @SuboptimalEng 3 года назад +4

    Good thing I’m lazy AF

  • @fernandoperalta891
    @fernandoperalta891 3 года назад +1

    Hi Rahul, I really enjoyed this video! I had a question about your 'My Memory Game' tutorial on the freeCodeCamp channel. I wanted to ask if if would be ok to edit a couple of features from the tutorial version and then publish it for myself on the Google Play Store. I'm fairly new to licensing and using open source software so I wanted to ask if this would be ok instead of doing it without asking. I hope you can get back to me and I love your videos!!!

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +2

      Thanks Fernando! I also replied on LinkedIn, copying over my message here in case it's helpful for others:
      You are welcome to take the tutorial + source code and do anything you want with it. You are free to add features, publish the app, or even commercialize it (a few people have done this). The open source license I used is Apache-2.0 License, which is quite permissive.

    • @fernandoperalta891
      @fernandoperalta891 3 года назад

      Thank you for the clarification! I really appreciate it.

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

    Does anyone have a realistic example of a late init?

  • @house_d2024
    @house_d2024 3 года назад

    hello Rahul , i like the way you teach! I want to ask you two things : to teach us kotlin multiplaform and to create a project using sqlite in android . THANK YOU A LOT

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +1

      thanks a lot! I'd also like to do something on SQLite!

  • @ravi_sorathiya
    @ravi_sorathiya 3 года назад

    Thanks coding in flow

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +1

      thank you + coding in flow

    • @ravi_sorathiya
      @ravi_sorathiya 3 года назад +1

      @@RahulPandeyrkplooking forward to in depth kotlin corotines and flow tutorial
      If you planning to make it

    • @ravi_sorathiya
      @ravi_sorathiya 3 года назад

      I just hit that subscribe button without wasting any further time after coding in flow posted insta story
      Know that's something is awesome there

  • @gdnk703
    @gdnk703 3 года назад

    Why automatic subtitles are not in english. Сan you fix it? Please

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад

      You should be able to control that on your end

  • @avirias
    @avirias 3 года назад

    Why lazy function definition has "actual" keyboard?, What is actual in kotlin ? 4:30

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +2

      Great question - "actual" means the implementation of this function has a platform-specific implementation. Kotlin code can be used in multiple platforms, such as JavaScript environments, native code, or JVM-based environments as being done here (that's why this file is called "LazyJVM.kt").

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

    Really good content but i am too lazy to implement this.

  • @AS-iv6vx
    @AS-iv6vx 3 года назад

    Why you add accountantDelegate? why not accountant.isInitialized()?

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад

      isInitialized doesn't exist as a method on the accountant, it's on the Lazy interface

    • @AS-iv6vx
      @AS-iv6vx 3 года назад +1

      @@RahulPandeyrkp I understand, you have changed "by lazy {}" to "= lazy{}"

    • @RahulPandeyrkp
      @RahulPandeyrkp  3 года назад +1

      @@AS-iv6vx yep exactly

  • @theai2020
    @theai2020 3 года назад

    half of the video is just nothing just this and that try to squeeze things in more compact way but still informative