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

Поделиться
HTML-код
  • Опубликовано: 7 сен 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 3 года назад +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 6 месяцев назад

      @@Mohit-gb9dv

  • @soontaek
    @soontaek 3 года назад +7

    The best explanation one can ever find on RUclips. Thank you!

  • @BhagyashreeAware
    @BhagyashreeAware 29 дней назад

    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

  • @vinamra4893
    @vinamra4893 4 года назад +6

    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.

  • @sumanparajuli229
    @sumanparajuli229 4 года назад +5

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

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

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

  • @HocineFerradj
    @HocineFerradj Год назад

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

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

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

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

  • @zakwanibrahim7283
    @zakwanibrahim7283 3 года назад +1

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

  • @anjumohanan3149
    @anjumohanan3149 3 года назад +2

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

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

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

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

  • @phuang3
    @phuang3 11 месяцев назад

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

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

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

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

    Very well explained! Thank you so much ❤️

  • @RichaHope
    @RichaHope 3 года назад +1

    Thank you for such an understandable video 🙏

  • @azei6049
    @azei6049 Год назад

    Awesome vid tutorial! Thank you!

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

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

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

    Thanks for creating this video.

  • @ricardoruiz2800
    @ricardoruiz2800 3 года назад +2

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

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

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

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

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

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

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

  • @syedhuzaifa2106
    @syedhuzaifa2106 3 месяца назад

    Thank you, awesome explanation.

  • @avigneswaranwaran
    @avigneswaranwaran Год назад +1

    Really a wonderfull explanation. Thanks a lot

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

    Happy to see you again. Please continue uploading videos

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

    Very good explanation 👍

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

    Nicely explained thanks

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

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

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

  • @parthapaul1249
    @parthapaul1249 3 года назад +1

    Thanks a lot

  • @tavoleyva8235
    @tavoleyva8235 3 года назад +1

    Great video!

  • @Sara-oy6ly
    @Sara-oy6ly 2 года назад +1

    Thank you 🙏🙏🙏🙏

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

    this is an excellent video

  • @ArjunVerma-lq4cf
    @ArjunVerma-lq4cf 3 года назад

    Excellent way of making videos

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

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

    It was useful, thank you

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

    very good video

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

    Very good video. Thank you very much!

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

    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.

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

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

  • @kalyanimeshram7669
    @kalyanimeshram7669 Год назад

    just so knowledgeable ❤

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

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

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

    So crisp!

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

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

  • @amirkotin5898
    @amirkotin5898 Год назад

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

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

    Awesome video and nicely explained. Kudos to u :)

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

    can we change deta using within scope?

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

    New video from legendary Sriyank after one year...

  • @user-oy4dy4bt5r
    @user-oy4dy4bt5r Год назад

    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.

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

    Nicely explained

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

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

  • @kpranjith
    @kpranjith 11 месяцев назад

    the best !!!

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

    Perfect. Thanks a lot.

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

    Welcome back sir

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

  • @provokator-provocateur7603
    @provokator-provocateur7603 2 года назад

    veri gud maj frend veri veri gud

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

    fine

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

    u r awesome

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

    please do a video on delegation in kotlin

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

    Gud tut

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

    Welcome Back!!😍

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

    finally you back sir

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

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

    Welcome back

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

    Great

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

    Miss you sir

  • @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 5 месяцев назад

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

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

    Superrrrrrrrrrrrrrrr

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

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

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

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

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

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

    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'

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

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

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

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

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

    Hindi

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

    Plz remove subtitle, i can not view entire code

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

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

    Welcome back sir

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

    Welcome back