Kotlin lazy delegate - explanation and example

  Рет қаралды 12,619

Rahul Pandey

Rahul Pandey

Күн бұрын

Пікірлер: 65
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
Learn Kotlin in 12 Minutes: kzbin.info/www/bejne/n4rVmIqFZ9ScmLs
@jokersmith9096
@jokersmith9096 3 жыл бұрын
I just wanted to say thank you, this is incredible content.
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
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 7 ай бұрын
Thanks for the deeper dive into the lazy code.
@AmitKumar-we8dm
@AmitKumar-we8dm 14 күн бұрын
Awsome videos @Rahul Bhai !
@jam4l
@jam4l Жыл бұрын
OMG this is amazing, the way you have explained just wow, TY.
@Dinesh-vg3sg
@Dinesh-vg3sg 9 ай бұрын
Thanks sir, I liked the way you have explained things in detail.
@shubhamnanche
@shubhamnanche Жыл бұрын
Great explanation 😃
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Nicely explained with internal working.
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
thanks a lot
@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.
@-no-handle
@-no-handle 3 жыл бұрын
Feels like I found a Gold mine.
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
😇
@ashishgautam2842
@ashishgautam2842 3 жыл бұрын
You are polishing us 🙏🙏
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
i'm all about the polish
@onmoveonmove226
@onmoveonmove226 2 жыл бұрын
Thank you for your explanation
@BelhouchetInes
@BelhouchetInes 3 жыл бұрын
Great quality, very efficient.
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
Thank you!
@siddharthchughs100
@siddharthchughs100 2 жыл бұрын
Hi Rahul , I really appreciate your knowledge and your insight on topics, which is quite very good, Thanks again.
@shutanovac
@shutanovac 3 жыл бұрын
This helped me understand the lazy delegate :-) Thanks man! Can you also talk about other delegates?
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
thank you! will definitely consider other delegates :)
@nalinitippa5942
@nalinitippa5942 3 жыл бұрын
Great instruction !!
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
Thank you!
@Another0neTime
@Another0neTime 3 жыл бұрын
Great explanation!
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
thanks Josh!
@komodotanjidor7272
@komodotanjidor7272 2 жыл бұрын
Great simple explanation but nonetheless clear as crystal
@ananjaygurjar
@ananjaygurjar 3 жыл бұрын
Incredible way to explain stuff!!
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
thank you!
@BehnamKhani
@BehnamKhani 2 жыл бұрын
great!
@droidcasts7350
@droidcasts7350 3 жыл бұрын
nice explanation, thank you
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
You're welcome ☺️
@avirias
@avirias 3 жыл бұрын
Why lazy function definition has "actual" keyboard?, What is actual in kotlin ? 4:30
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
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").
@fernandoperalta891
@fernandoperalta891 3 жыл бұрын
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 жыл бұрын
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.
@telurasinmontasik2406
@telurasinmontasik2406 2 жыл бұрын
this is what I need
@MisterWealth
@MisterWealth 2 жыл бұрын
Does anyone have a realistic example of a late init?
@rajeetgoyal6879
@rajeetgoyal6879 3 жыл бұрын
Great content🔥 Please consider making your videos in Dracula theme. That might be a lot more pleasing for eyes :)
@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 жыл бұрын
Sure, can add reflection to my list. I don't use it too frequently though
@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
@nathann4291
@nathann4291 3 жыл бұрын
THE LEGEND
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
❣️🥳
@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 жыл бұрын
thanks a lot! I'd also like to do something on SQLite!
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
Good thing I’m lazy AF
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
we're so similar 🤣
@matt-g-recovers
@matt-g-recovers Жыл бұрын
Subbed
@ravi_sorathiya
@ravi_sorathiya 3 жыл бұрын
Thanks coding in flow
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
thank you + coding in flow
@ravi_sorathiya
@ravi_sorathiya 3 жыл бұрын
@@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
@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 жыл бұрын
@@RahulPandeyrkp I understand, you have changed "by lazy {}" to "= lazy{}"
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
@@AS-iv6vx yep exactly
@erenizci4197
@erenizci4197 2 жыл бұрын
Really good content but i am too lazy to implement this.
@RahulPandeyrkp
@RahulPandeyrkp 2 жыл бұрын
😅😂
@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
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
didn't understand 🤔
@theai2020
@theai2020 3 жыл бұрын
@@RahulPandeyrkp yes same
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Full Guide to Delegation in Kotlin  - Android Studio Tutorial
18:10
Philipp Lackner
Рет қаралды 72 М.
Kotlin companion object - common use cases
5:10
Rahul Pandey
Рет қаралды 10 М.
15 Years of Software Engineer Knowledge in 1 hour 30 mins
1:30:39
Rahul Pandey
Рет қаралды 103 М.
Real 10x Programmers Are SLOW To Write Code
14:51
Thriving Technologist
Рет қаралды 69 М.
Constructors and Init blocks in Kotlin - BEST PRACTICES
5:33
Rahul Pandey
Рет қаралды 19 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 846 М.
Kotlin Delegation Tutorial with Example
6:54
Simplified Coding
Рет қаралды 20 М.