Kotlin Scope Functions: let, apply, run, with, and also : With Differences

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ย. 2024

ความคิดเห็น • 101

  • @SriyankSiddhartha
    @SriyankSiddhartha 4 ปีที่แล้ว +26

    00:00 Welcome
    00:45 Types of Scope Functions
    03:34 'with' function
    08:40 'apply' function
    11:45 'also' function
    16:43 'let' function
    21:47 'run' function
    25:10 Quick Video Guide

  • @sunilprasai1815
    @sunilprasai1815 4 ปีที่แล้ว +43

    Content here is more comprehensive then $100 Udemy course. Thanks, Sriyank.

    • @Mohit-gb9dv
      @Mohit-gb9dv 2 ปีที่แล้ว +1

      Never seen $100 udemy course 😂

    • @Hrit
      @Hrit 2 ปีที่แล้ว

      Fact! I have seen so many kotlin tutorial but there are only a few channels who actually clear out the concepts rather than just writing code directly. Kudos to this man!

    • @manikantadasar6554
      @manikantadasar6554 9 หลายเดือนก่อน

      @@Mohit-gb9dv

  • @soontaek
    @soontaek 3 ปีที่แล้ว +8

    The best explanation one can ever find on TH-cam. Thank you!

  • @owenlie
    @owenlie 2 ปีที่แล้ว +1

    Thank you. I watch the original Kotlin documentation about scope function, but with no avail to understand them. Your comprehensive and practical explanation in this video makes me understood.

  • @vinamra4893
    @vinamra4893 4 ปีที่แล้ว +7

    Finally you're back!! Your content is very clear, concise and neat!!

  • @BhagyashreeAware
    @BhagyashreeAware 3 หลายเดือนก่อน

    Just want to thank to you in whole you tube i can't find a better video then this for scope fun thank you so much

  • @nexgen.graphics
    @nexgen.graphics 3 ปีที่แล้ว

    If kotlin is a clear, concise language then your kotlin tutorials are as well. Hands down the best explanation I had found online even better than the kotlin documentation.

  • @gyanawasthi100
    @gyanawasthi100 ปีที่แล้ว

    Salute Sir , i did not understand all these things but your style of teaching is very nice, anyone can learn easily . Now i understood the use of scope functions. Thank you so much

  • @zakwanibrahim7283
    @zakwanibrahim7283 3 ปีที่แล้ว +1

    i have followed this playlist video by video..... my concepts are clear now .... thanks sriyank ....

  • @HocineFerradj
    @HocineFerradj ปีที่แล้ว

    Thanks for this most wonderful explanation . It deserves a Million Stars and a billion ratings

  • @abbosfayziboyev6441
    @abbosfayziboyev6441 2 ปีที่แล้ว

    Thank you a lot. I want that every learner can find the most proper lessons for themselves in this channel !!!

  • @phuang3
    @phuang3 ปีที่แล้ว

    Best video on Kotlin scope functions. Subscribed. Thank you.

  • @freecountdummy4623
    @freecountdummy4623 3 ปีที่แล้ว +11

    Hi Sriyank,
    I'm still confusing to differentiate between "let" and "run". Based on your example, both are very similiar for me. Those functions do some operations and return a lambda result. The only thing I can tell the different is the context object but that isn't the point I'm looking for. So, could you tell me more detail about when to use "let" and "run".
    Thanks a lot Sriyank

    • @nishaaggarwal7876
      @nishaaggarwal7876 ปีที่แล้ว

      even I am confused for so long for the same. Have you got any clarifications?

  • @VenewebTV
    @VenewebTV 2 ปีที่แล้ว

    Excellet video, very useful and impeccable didactic, regards from Caracas, Venezuela

  • @sumanparajuli229
    @sumanparajuli229 4 ปีที่แล้ว +5

    Finally, you come back........ make as soon as more flutter tutorial....

  • @anjumohanan3149
    @anjumohanan3149 3 ปีที่แล้ว +2

    Well explained. Couldnt drop in between. Such an interesting explanation

  • @jangraanish
    @jangraanish 3 ปีที่แล้ว

    I just want to say Woooowwwww. what a way to explain things.

  • @edusantino6317
    @edusantino6317 2 ปีที่แล้ว +3

    Why don't you put your content on Udemy or another platform? For sure, your teaching is among the best I've ever seen! Extremely valuable content!

  • @pravinmane1
    @pravinmane1 3 ปีที่แล้ว

    Thank you so much!!!!! This is the best explanation I have found on the internet.

  • @hardcodeandroid
    @hardcodeandroid 4 ปีที่แล้ว +1

    sir I am also your fan and "welcome you".
    Continue this course

  • @appletree3395
    @appletree3395 2 ปีที่แล้ว +1

    Very well explained! Thank you so much ❤️

  • @rama815
    @rama815 3 ปีที่แล้ว

    Nice explanation Sheryank !! I always used to get confuse while using run Scope Function. {let + with }

  • @azei6049
    @azei6049 2 ปีที่แล้ว

    Awesome vid tutorial! Thank you!

  • @avigneswaranwaran
    @avigneswaranwaran 2 ปีที่แล้ว +1

    Really a wonderfull explanation. Thanks a lot

  • @kelvinclark3474
    @kelvinclark3474 4 ปีที่แล้ว

    Great tutor, I liked and subscribed before i got half way. Thanks much

  • @syedhuzaifa2106
    @syedhuzaifa2106 5 หลายเดือนก่อน

    Thank you, awesome explanation.

  • @RichaHope
    @RichaHope 3 ปีที่แล้ว +1

    Thank you for such an understandable video 🙏

  • @tomaslopez9999
    @tomaslopez9999 2 ปีที่แล้ว

    Thanks for creating this video.

  • @InaAgapito
    @InaAgapito 2 ปีที่แล้ว

    Wow the way that you have explain it was so easy to understand

  • @krishnamandava9919
    @krishnamandava9919 4 ปีที่แล้ว

    Happy to see you again. Please continue uploading videos

  • @hdkloh6857
    @hdkloh6857 4 ปีที่แล้ว

    Welcome back... Pls make series on New Material Design Components 2020

  • @journeywithjaydev
    @journeywithjaydev 2 ปีที่แล้ว

    Very good explanation 👍

  • @ricardoruiz2800
    @ricardoruiz2800 3 ปีที่แล้ว +2

    Why not using ?.operator with the other scope functions?
    Thanks.

  • @FriendlyProgrammer
    @FriendlyProgrammer 3 ปีที่แล้ว

    Thank you so much sir to explain these functions so easily and clearly.

  • @willorwig1824
    @willorwig1824 2 ปีที่แล้ว

    Very good video. Thank you very much!

  • @lokeshprajapati9197
    @lokeshprajapati9197 4 ปีที่แล้ว

    welcome, finally you are back, now we will learn something great.

  • @chintankhetiya
    @chintankhetiya ปีที่แล้ว

    Sriyank Extermaly good content. May I know how you edit your videos to which software you are using for building and design such videos.

  • @tarunsharma4823
    @tarunsharma4823 4 ปีที่แล้ว

    Hi Sriyank
    I appreciate your and ur mate video about kotlin and others. They are very neat and clean. Can you create a series on Dagger like hilt.

  • @bestversionofme92
    @bestversionofme92 3 ปีที่แล้ว

    Nicely explained thanks

  • @santoshsali8954
    @santoshsali8954 3 ปีที่แล้ว

    Very nice Explanation.... Please made some videos on DS and Algorithms

  • @Bingo20678
    @Bingo20678 4 ปีที่แล้ว

    Hey bro, ur tutorial videos were very helpful for me to learn more about kotlin. Thanks for every tips you hd given in every videos.
    During this lockdown I'm trying to build modads specifically for rewarded advertisement using kotlin, but confused with the adding of items in toolbars and linking with rewarded videos. Yes I'm beginner here!

  • @ArjunVerma-lq4cf
    @ArjunVerma-lq4cf 3 ปีที่แล้ว

    Excellent way of making videos

  • @amirkotin5898
    @amirkotin5898 ปีที่แล้ว

    Thanx sir
    I am little bit confuse what is difference between let and run

  • @Sara-lilia
    @Sara-lilia 2 ปีที่แล้ว +1

    Thank you 🙏🙏🙏🙏

  • @parthapaul1249
    @parthapaul1249 3 ปีที่แล้ว +1

    Thanks a lot

  • @himangshubiswas542
    @himangshubiswas542 2 ปีที่แล้ว

    It was useful, thank you

  • @jessepollack2815
    @jessepollack2815 3 ปีที่แล้ว

    this is an excellent video

  • @JK92007
    @JK92007 4 ปีที่แล้ว

    भाई फिर से एडवांस्ड फलटर सीरीज चालू करो....👌👌👍👍 बहोत अच्छा समजाते हो.....

  • @kalyanimeshram7669
    @kalyanimeshram7669 ปีที่แล้ว

    just so knowledgeable ❤

  • @eunjeongchoi5074
    @eunjeongchoi5074 3 ปีที่แล้ว

    wow i finally got the concept thanks a lot!!!

  • @tavoleyva8235
    @tavoleyva8235 3 ปีที่แล้ว +1

    Great video!

  • @Nithin_Coorg
    @Nithin_Coorg 2 ปีที่แล้ว

    So crisp!

  • @my_love_sanatan
    @my_love_sanatan 2 ปีที่แล้ว +1

    can we change deta using within scope?

  • @bala_24
    @bala_24 4 ปีที่แล้ว

    Nicely explained

  • @ronakgoyal2269
    @ronakgoyal2269 3 ปีที่แล้ว

    Awesome video and nicely explained. Kudos to u :)

  • @mkc0321
    @mkc0321 4 ปีที่แล้ว +1

    very good video

  • @utsavpopli3951
    @utsavpopli3951 3 ปีที่แล้ว +1

    Thank you for such a nice explanation. This helps a lot. To be honest, Kotlin is one of the biggest disaster in programming world.
    But due to some heavy investment in Kotlin our company I would have to learn and work on it.

  • @noshingh521
    @noshingh521 4 ปีที่แล้ว

    New video from legendary Sriyank after one year...

  • @refreshing_morning
    @refreshing_morning 4 ปีที่แล้ว

    Welcome back sir

  • @hissabis2068
    @hissabis2068 4 ปีที่แล้ว

    Perfect. Thanks a lot.

  • @kpranjith
    @kpranjith ปีที่แล้ว

    the best !!!

  • @mohammedashfaqueaslam2566
    @mohammedashfaqueaslam2566 4 ปีที่แล้ว

    please do a video on delegation in kotlin

  • @yesireact
    @yesireact 3 ปีที่แล้ว

    Gud tut

  • @provokator-provocateur7603
    @provokator-provocateur7603 2 ปีที่แล้ว

    veri gud maj frend veri veri gud

  • @ArpitParekhWriter
    @ArpitParekhWriter 3 ปีที่แล้ว

    u r awesome

  • @harmindersingh5364
    @harmindersingh5364 2 ปีที่แล้ว

    Can you tell how you do video editing in your videos .

    • @smartherd
      @smartherd  2 ปีที่แล้ว +1

      Yes, camtasia

    • @harmindersingh5364
      @harmindersingh5364 2 ปีที่แล้ว

      @@smartherd but with that can we able to do screen marker animation that you show in videos to highlighting the concept

    • @smartherd
      @smartherd  2 ปีที่แล้ว

      @@harmindersingh5364 yes . you can explore camtasia annotations and callouts on Google

  • @avvjt
    @avvjt 4 ปีที่แล้ว

    Miss you sir

    • @smartherd
      @smartherd  4 ปีที่แล้ว +5

      I am back 🔥

  • @abhishekpant4927
    @abhishekpant4927 2 ปีที่แล้ว

    fine

  • @anoundhim4393
    @anoundhim4393 4 ปีที่แล้ว

    finally you back sir

  • @JK92007
    @JK92007 4 ปีที่แล้ว

    वेरी हैप्पी to सी यु ...👍👍👍😊😊😊☺🎂💐💐

  • @Rajmanov
    @Rajmanov 4 ปีที่แล้ว

    Welcome Back!!😍

  • @RAJKTARIYA
    @RAJKTARIYA 3 ปีที่แล้ว

    Great

  • @foodpass6737
    @foodpass6737 4 ปีที่แล้ว

    Welcome back

  • @divyathakur7320
    @divyathakur7320 3 ปีที่แล้ว

    whats the difference between run and let, you have wriiten same description for both,, only difference is referring contextobject with it and this, is this the only difference?

  • @mustafaylmazerdagl4127
    @mustafaylmazerdagl4127 3 ปีที่แล้ว

    Superrrrrrrrrrrrrrrr

  • @adii18s
    @adii18s 4 ปีที่แล้ว +2

    Flutter Advanced Tutorials like making an music app,instagram clone,etc using flutter please🙏🙏

  • @ranjini9334
    @ranjini9334 ปีที่แล้ว

    I used your code changed the apis it crashes on login anybody else facing this issue? please let me know how to fix this..

  • @deepakshah3108
    @deepakshah3108 ปีที่แล้ว

    val person = PersonData()
    val value: Int = with(person) {
    name = "Deepak"
    }
    val person1 = PersonData().apply {
    name = "Deepak"
    }
    I can do the same thing with apply and with then now how to know where to use which one?

    • @illuminati_911
      @illuminati_911 7 หลายเดือนก่อน

      val person = PersonData()
      val value: Int = with(person) {
      name = "Gamdu"
      }

  • @vengateshm2122
    @vengateshm2122 4 ปีที่แล้ว

    It seems run and let are same with difference of this and it.

    • @abhisheksingh3825
      @abhisheksingh3825 3 ปีที่แล้ว

      Yeah I also observed same. Also I think we can do most work using with, apply and let

  • @ivootty_s_world
    @ivootty_s_world 4 ปีที่แล้ว

    I am just a beginner in kotlin and can anyone help me to do this program to create password?
    1.User should be able to enter the text
    2.Find odd numbered words(eg. *Hai How are you?* ,where odd numbered words are Hai,are)
    3.Select even numbered character from the selected words
    3.Pswd length should be greater or equal to total word count(eg.Hi How are you?,word count=4 and pswd length should be >=4)Add * to make the word count equal to pswd length.(if word count=5,and pswd length=2 then add 3 '*')(if pswd =st and word length is 5,final pswd must be st***)
    4.include single quote ' ' before and after the pswd for better understanding
    5.Character count must start from 1 not from 0(H-1,a-2,i-3..vice versa)
    Eg.input text:Hai. How aRe you?
    Output:'a.R*'
    Input text:Hellooooo. How r you?
    Output:'eloo'

  • @teenpattiscripter4250
    @teenpattiscripter4250 3 ปีที่แล้ว

    Hindi

  • @shivamchawla6126
    @shivamchawla6126 4 ปีที่แล้ว

    your concept is bit confusing and incomplete at 24:28 you said "Use safe call with run to avoid null pointer" but what is the point of using " obj?.let{} " if we can already make our code null safe with run and what is the difference in " obj?.also{} ", one more thing you modified the contents of the list by adding numbers inside also{} which is wrong we should not modify the contents of object inside also{}

  • @Muhammad-sx7wr
    @Muhammad-sx7wr 3 ปีที่แล้ว

    2:12 I just hate it when they find a new way to do the same thing people have been doing for ages. Calling it more concise and easier to read what's the point of constantly learning new ways to do the same thing?

  • @rahul5177
    @rahul5177 4 ปีที่แล้ว

    Sir i'm learning Android by java not kotlin. Sir what to do please tell me?

  • @rakeshkushwaha3853
    @rakeshkushwaha3853 4 ปีที่แล้ว +1

    Plz remove subtitle, i can not view entire code

    • @srikanthp2036
      @srikanthp2036 4 ปีที่แล้ว +1

      Disable captions in your settings. You have enabled it.

    • @rakeshkushwaha3853
      @rakeshkushwaha3853 4 ปีที่แล้ว

      @@srikanthp2036 thnks sir

  • @dewetvanrooyen8458
    @dewetvanrooyen8458 3 ปีที่แล้ว

    Thank for this excellent explanation , I am now more confidant and will use this vid reference to research my memory.
    Can you please create a video where you use these Scope fun in an Android app.

  • @sapariyamiral5891
    @sapariyamiral5891 2 ปีที่แล้ว

    Very nice explanation 👌

  • @RKClass
    @RKClass 4 ปีที่แล้ว

    Welcome back sir

  • @niraldhameliya5282
    @niraldhameliya5282 4 ปีที่แล้ว

    Welcome back