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

Поділитися
Вставка
  • Опубліковано 1 гру 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 4 роки тому +8

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

  • @vinamra4893
    @vinamra4893 4 роки тому +7

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

  • @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.

  • @HocineFerradj
    @HocineFerradj Рік тому

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

  • @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

  • @zakwanibrahim7283
    @zakwanibrahim7283 3 роки тому +1

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

  • @VenewebTV
    @VenewebTV 2 роки тому

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

  • @jangraanish
    @jangraanish 3 роки тому

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

  • @phuang3
    @phuang3 Рік тому

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

  • @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.

  • @sumanparajuli229
    @sumanparajuli229 4 роки тому +5

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

  • @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

  • @anjumohanan3149
    @anjumohanan3149 3 роки тому +2

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

  • @abbosfayziboyev6441
    @abbosfayziboyev6441 2 роки тому

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

  • @avigneswaranwaran
    @avigneswaranwaran 2 роки тому +1

    Really a wonderfull explanation. Thanks a lot

  • @tomaslopez9999
    @tomaslopez9999 2 роки тому

    Thanks for creating this video.

  • @Sara-lilia
    @Sara-lilia 3 роки тому +1

    Thank you 🙏🙏🙏🙏

  • @pravinmane1
    @pravinmane1 3 роки тому

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

  • @azei6049
    @azei6049 2 роки тому

    Awesome vid tutorial! Thank you!

  • @tavoleyva8235
    @tavoleyva8235 3 роки тому +1

    Great video!

  • @ArjunVerma-lq4cf
    @ArjunVerma-lq4cf 3 роки тому

    Excellent way of making videos

  • @syedhuzaifa2106
    @syedhuzaifa2106 5 місяців тому

    Thank you, awesome explanation.

  • @appletree3395
    @appletree3395 2 роки тому +1

    Very well explained! Thank you so much ❤️

  • @willorwig1824
    @willorwig1824 2 роки тому

    Very good video. Thank you very much!

  • @RichaHope
    @RichaHope 3 роки тому +1

    Thank you for such an understandable video 🙏

  • @jessepollack2815
    @jessepollack2815 3 роки тому

    this is an excellent video

  • @krishnamandava9919
    @krishnamandava9919 4 роки тому

    Happy to see you again. Please continue uploading videos

  • @bestversionofme92
    @bestversionofme92 3 роки тому

    Nicely explained thanks

  • @kelvinclark3474
    @kelvinclark3474 4 роки тому

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

  • @journeywithjaydev
    @journeywithjaydev 2 роки тому

    Very good explanation 👍

  • @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?

  • @parthapaul1249
    @parthapaul1249 3 роки тому +1

    Thanks a lot

  • @InaAgapito
    @InaAgapito 2 роки тому

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

  • @FriendlyProgrammer
    @FriendlyProgrammer 3 роки тому

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

  • @hardcodeandroid
    @hardcodeandroid 4 роки тому +1

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

  • @lokeshprajapati9197
    @lokeshprajapati9197 4 роки тому

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

  • @eunjeongchoi5074
    @eunjeongchoi5074 3 роки тому

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

  • @himangshubiswas542
    @himangshubiswas542 3 роки тому

    It was useful, thank you

  • @kalyanimeshram7669
    @kalyanimeshram7669 Рік тому

    just so knowledgeable ❤

  • @rama815
    @rama815 3 роки тому

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

  • @mkc0321
    @mkc0321 4 роки тому +1

    very good video

  • @bala_24
    @bala_24 4 роки тому

    Nicely explained

  • @ronakgoyal2269
    @ronakgoyal2269 3 роки тому

    Awesome video and nicely explained. Kudos to u :)

  • @edusantino6317
    @edusantino6317 3 роки тому +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!

  • @refreshing_morning
    @refreshing_morning 4 роки тому

    Welcome back sir

  • @hdkloh6857
    @hdkloh6857 4 роки тому

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

  • @Rajmanov
    @Rajmanov 4 роки тому

    Welcome Back!!😍

  • @ricardoruiz2800
    @ricardoruiz2800 4 роки тому +2

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

  • @anoundhim4393
    @anoundhim4393 4 роки тому

    finally you back sir

  • @santoshsali8954
    @santoshsali8954 3 роки тому

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

  • @Nithin_Coorg
    @Nithin_Coorg 2 роки тому

    So crisp!

  • @hissabis2068
    @hissabis2068 4 роки тому

    Perfect. Thanks a lot.

  • @kpranjith
    @kpranjith Рік тому

    the best !!!

  • @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.

  • @my_love_sanatan
    @my_love_sanatan 3 роки тому +1

    can we change deta using within scope?

  • @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!

  • @JK92007
    @JK92007 4 роки тому

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

  • @amirkotin5898
    @amirkotin5898 Рік тому

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

  • @noshingh521
    @noshingh521 4 роки тому

    New video from legendary Sriyank after one year...

  • @foodpass6737
    @foodpass6737 4 роки тому

    Welcome back

  • @yesireact
    @yesireact 3 роки тому

    Gud tut

  • @provokator-provocateur7603
    @provokator-provocateur7603 2 роки тому

    veri gud maj frend veri veri gud

  • @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.

  • @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.

  • @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

  • @mustafaylmazerdagl4127
    @mustafaylmazerdagl4127 3 роки тому

    Superrrrrrrrrrrrrrrr

  • @JK92007
    @JK92007 4 роки тому

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

  • @avvjt
    @avvjt 4 роки тому

    Miss you sir

  • @mohammedashfaqueaslam2566
    @mohammedashfaqueaslam2566 4 роки тому

    please do a video on delegation in kotlin

  • @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?

  • @RAJKTARIYA
    @RAJKTARIYA 3 роки тому

    Great

  • @ranjini9334
    @ranjini9334 2 роки тому

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

  • @abhishekpant4927
    @abhishekpant4927 2 роки тому

    fine

  • @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 8 місяців тому

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

  • @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'

  • @adii18s
    @adii18s 4 роки тому +2

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

  • @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

  • @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{}

  • @rahul5177
    @rahul5177 4 роки тому

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

  • @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?

  • @EngTechWithRakesh
    @EngTechWithRakesh 4 роки тому +1

    Plz remove subtitle, i can not view entire code

  • @teenpattiscripter4250
    @teenpattiscripter4250 3 роки тому

    Hindi

  • @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