The Let Scope Function Explained (Kotlin)
HTML-код
- Опубликовано: 26 сен 2024
- In this video we talk about the let scope function and how I typically use it with Kotlin.
As with every single video I do about software engineering, if you have any questions or comments please let me know below 😊
🚶♂️ FOLLOW ME 🚶♂️
Twitter - / codyengeltweets
Medium - / codyengel
📚 RESOURCES 📚
Project Repository - github.com/Cod...
Let Scope Function - github.com/Cod...
🎥 CAMERA GEAR 🎥
Camera - amzn.to/2LM9Zt3
Microphone - amzn.to/2LLv0Eb
Lens - amzn.to/317tGPT
Main Lights - amzn.to/2K2yHDH
Back Lights - amzn.to/2Yw4HUI
External Monitor - amzn.to/2YoM2Kl
* Note: the above links are affiliate links.
🖥 DESK GEAR 🖥
Monitor - amzn.to/2yjZPqR
Headphones - amzn.to/2YBuo68
Google Nest Hub - amzn.to/30Zuki7
MacBook Pro 2019 - amzn.to/30YyuXy
* Note: the above links are affiliate links.
Excellent video, greatings from Caracas, Venezuela
Good , people like you are there to help others with simple layman terms. Thanks for this kotlin series
You’re welcome! I’m happy to hear this helped out and I’d be interested in your thoughts on my collections tutorial that is being released over the next week 😊
@@CodyEngelCodes sure Cody, however if i would like to share my practice code and ask you to review it, would you agree to that?
I really loved this video, I can't thank you enough
Glad you enjoyed it!
Nice! Very useful
Thank you, helped me a lot!
Yeah you're welcome, happy to hear it helped!
[UPDATE] In Kotlin 1.7.0 when we set marge = null, it shows compile time error to update values of address components in let block.
Awesome! Can we have a series on ktor as well?
Ktor has been on my list. I have the collections framework tutorial filmed and just needs to be edited but after that one I’m between either ktor or coroutines.
Hello, can you please tell me the difference between it and this
Thanks in advance
Hey Andro, the difference is the context within the scope function. When you have "it" you are able to reference the outer scope by "this". When the scope function provides the "this" context then you will have a harder time referencing "this". Typically if you are working with an object and you want to also reference other objects, "it" would be the route you'd want to take. If you are working with an object and only want to reference their variables then "this" would be the route to take.