Kotlin Scope Functions Tutorial - let, run, with, apply and also

  Рет қаралды 12,518

Simplified Coding

Simplified Coding

Күн бұрын

Пікірлер: 32
@dahlola
@dahlola 3 жыл бұрын
Nice video! But you did a mistake explaining with. You still referred to square when it should be this. But easy to miss these things :)
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
Can you tell me the time?
@dahlola
@dahlola 3 жыл бұрын
@@SimplifiedCoding 9:15
@BelalKhan
@BelalKhan 3 жыл бұрын
Yeah, I noticed now. Thanks for pointing out ✌️✌️
@udaysharma5228
@udaysharma5228 Жыл бұрын
You don't even need to use this!
@dikshakoratkar5538
@dikshakoratkar5538 2 жыл бұрын
This tutorial is very helpful. My all concepts cleared about scope function
@manyantra
@manyantra Жыл бұрын
very nice video on how to use scope functions
@silvahawk
@silvahawk 3 жыл бұрын
I think it'd be nice if you could explain the difference in this vs. it as well. I kinda understood the concept, but had to look it up myself for the difference between those keyword to make sure I didn't miss anything
@saquibsiddique2641
@saquibsiddique2641 3 жыл бұрын
please dive a little deep into how they are working and why we have 5 different scope functions
@radbaver
@radbaver 4 жыл бұрын
Thank you ! Great one 😃
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Usage in android: Intent(this,SignupActivity::class.java) .apply{ putStringExtra(SCOPE_KEY, "admin") } .also{it -> startActivity(it) }
@frozen1093
@frozen1093 3 жыл бұрын
But we are able to write StartActivity(this) inside apply , aren't we?
@vengateshm2122
@vengateshm2122 3 жыл бұрын
@@frozen1093 yes we can
@frozen1093
@frozen1093 3 жыл бұрын
@@vengateshm2122 but why did you use also, mb it's better to write it like you did ?
@vengateshm2122
@vengateshm2122 3 жыл бұрын
@@frozen1093 apply we use to set attributes of an object whereas also can be used to perform some operations using that object
@frozen1093
@frozen1093 3 жыл бұрын
@@vengateshm2122 ohh I got it, thanks a lot
@frozen1093
@frozen1093 3 жыл бұрын
Thank you!
@shreyashchoudhary7413
@shreyashchoudhary7413 3 жыл бұрын
Loved it!
@thakurgopaldangi8159
@thakurgopaldangi8159 4 жыл бұрын
hello, video are good but still how we can use scope function differently? all are done same kind of task with its objects.
@SimplifiedCoding
@SimplifiedCoding 4 жыл бұрын
We will learn more about it, when we will start learning android development just after this course. So stay tuned.
@SAJJADAHMAD-uy3hu
@SAJJADAHMAD-uy3hu 3 жыл бұрын
Pl make some videos on covariance and contravariance in kotlin. I don't undestsnd the meaning of out keyword in kotlin. No youtuber from our country has yet made any video to clear this concept. It will be your great favour to me if you make video on covariance and contravariance in kotlin
@TheKamble
@TheKamble 4 жыл бұрын
I still don't get the difference between them. They appear pretty similar to be, maybe adding some use cases would help. I only use let and apply. The rest I don't know where to use them.
@ravi_sorathiya
@ravi_sorathiya 4 жыл бұрын
Let apply also is use most of the time Run, with you hardly use
@kishorramani007
@kishorramani007 3 жыл бұрын
If we can't return this, it also work In which situation, it's not updating value
@abbasalidaruwala
@abbasalidaruwala 4 жыл бұрын
Hi run and with are almost same? Instead run is better because less code?
@prometheusli101
@prometheusli101 3 жыл бұрын
i dont konw whats different with them,there are almost the same。so i just get one which i prefer。
@Packiaraj07
@Packiaraj07 3 жыл бұрын
Me too have the same question.. could you please explain with good example for all these. Which will help to use it in the right place
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
That's perfectly fine, you can use any function that you like.
@ss-xn5rw
@ss-xn5rw 4 жыл бұрын
good video but what the difference between it n this
@randyorton3265
@randyorton3265 3 жыл бұрын
bhai thodi hindi bhi bol diya karo
@shreyashchoudhary7413
@shreyashchoudhary7413 3 жыл бұрын
Loved it!
Kotlin Collections Tutorial - Understanding List, Set & Map
13:42
Simplified Coding
Рет қаралды 9 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Kotlin Standard Delegates - Lazy, Observable and Vetoable
10:42
Simplified Coding
Рет қаралды 10 М.
Kotlin Exception Handling Tutorial
12:23
Simplified Coding
Рет қаралды 8 М.
5 Fun Ways to Use Extension Functions in Kotlin
18:46
Dave Leeds
Рет қаралды 13 М.
Kotlin Generics Explained with Example
10:18
Simplified Coding
Рет қаралды 18 М.
I Helped 2,000 People Walk Again
15:31
MrBeast
Рет қаралды 20 МЛН
Let, Also, Apply, Run, With - Kotlin Scope Functions
11:44
Philipp Lackner
Рет қаралды 100 М.
Kotlin Delegating Properties Tutorial with Example
8:33
Simplified Coding
Рет қаралды 11 М.
5 Fatal Coroutine Mistakes Nobody Tells You About
18:15
Philipp Lackner
Рет қаралды 90 М.