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.

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

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

    Excellent video, greatings from Caracas, Venezuela

  • @ManpreetSingh-cs5kp
    @ManpreetSingh-cs5kp 4 года назад +2

    Good , people like you are there to help others with simple layman terms. Thanks for this kotlin series

    • @CodyEngelCodes
      @CodyEngelCodes  4 года назад

      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 😊

    • @ManpreetSingh-cs5kp
      @ManpreetSingh-cs5kp 4 года назад

      @@CodyEngelCodes sure Cody, however if i would like to share my practice code and ask you to review it, would you agree to that?

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

    I really loved this video, I can't thank you enough

  • @TheBadFred
    @TheBadFred 4 года назад +1

    Nice! Very useful

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

    Thank you, helped me a lot!

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

      Yeah you're welcome, happy to hear it helped!

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

    [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.

  • @ritheshbhat1153
    @ritheshbhat1153 4 года назад +1

    Awesome! Can we have a series on ktor as well?

    • @CodyEngelCodes
      @CodyEngelCodes  4 года назад +1

      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.

  • @aviagarwal7528
    @aviagarwal7528 4 года назад

    Hello, can you please tell me the difference between it and this
    Thanks in advance

    • @CodyEngelCodes
      @CodyEngelCodes  4 года назад +2

      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.