Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,120 --> 00:00:05,310
In Dallas lecture, we have talked about a company that properties in this lecture would look to talk
2
00:00:05,340 --> 00:00:07,560
more about the reactivity of the villagers.
3
00:00:08,640 --> 00:00:12,930
Let's begin inspecting our data in the home, not you.
4
00:00:13,560 --> 00:00:18,300
Let's see the data here, and I will separate the counter value into its own variable up here because
5
00:00:18,650 --> 00:00:20,610
I would like to create a duplicate of the count.
6
00:00:21,600 --> 00:00:23,470
But right here comes the count.
7
00:00:23,520 --> 00:00:24,180
It will be value.
8
00:00:24,180 --> 00:00:24,720
10.
9
00:00:25,350 --> 00:00:28,230
OK, I will provide here the value from the council.
10
00:00:29,040 --> 00:00:29,730
Like this?
11
00:00:31,260 --> 00:00:33,630
OK, so we can see we are providing is a value here.
12
00:00:34,820 --> 00:00:41,570
It can also ride like this, and then I a light other account of their account, and this will be the
13
00:00:41,570 --> 00:00:44,480
getting value also from the account.
14
00:00:44,780 --> 00:00:48,450
OK, so both of them will be initialized with the value 10.
15
00:00:48,470 --> 00:00:49,880
Now we have also other accounts here.
16
00:00:49,880 --> 00:00:51,350
So on display also other account.
17
00:00:52,310 --> 00:00:55,340
I'll go up here and I will display here under this div.
18
00:00:57,520 --> 00:01:02,530
Their account, their account, and it'll be the other account.
19
00:01:03,310 --> 00:01:08,590
So what do you think the net will be incrementing the account to think that other accounts will be changing?
20
00:01:09,400 --> 00:01:10,060
Let's take a look.
21
00:01:11,730 --> 00:01:17,150
And when I look at your increment, you can see, of course, is not changing because of the small increment
22
00:01:17,160 --> 00:01:18,660
thing is not the other count.
23
00:01:19,110 --> 00:01:22,200
But in our income and function of our income, I think only the count.
24
00:01:23,900 --> 00:01:30,910
So what we can do in order to basically link these two values together have an update, the one, the
25
00:01:30,930 --> 00:01:32,480
also other abominable update.
26
00:01:33,910 --> 00:01:34,690
That's where is.
27
00:01:35,630 --> 00:01:37,470
You will use something called the ref.
28
00:01:38,880 --> 00:01:46,140
OK, let's get to the airport in Port Patrick, and let's import here from view import.
29
00:01:48,030 --> 00:01:48,350
All right.
30
00:01:48,870 --> 00:01:49,500
From.
31
00:01:51,480 --> 00:01:59,230
From U K and the ravages simply function, slowly lose their function there, and we'll wrap this in
32
00:01:59,310 --> 00:02:00,990
then here, OK?
33
00:02:01,910 --> 00:02:02,450
And that's it.
34
00:02:03,530 --> 00:02:04,740
OK, that's it, guys.
35
00:02:04,760 --> 00:02:08,000
Not only will say that they will go to oppose any increment.
36
00:02:08,330 --> 00:02:11,860
You can see now both of your values are changing.
37
00:02:11,870 --> 00:02:16,790
So as you could see now, I am not changing really the other account and not really, I'm not really
38
00:02:16,790 --> 00:02:17,870
doing it here.
39
00:02:18,470 --> 00:02:19,490
I just changing the count.
40
00:02:19,490 --> 00:02:24,920
But since I have created year value four for the wallet companies that are now.
41
00:02:25,930 --> 00:02:31,690
But he turned to the right faction, and I'm sending it to the commandant and other account, this values
42
00:02:31,690 --> 00:02:39,430
are copied this way that basically they're referencing the value think OK, because what I am returning
43
00:02:39,700 --> 00:02:41,770
here is not really the real value.
44
00:02:41,800 --> 00:02:45,370
The number 10, but it's basically object and has a value properly.
45
00:02:45,370 --> 00:02:46,870
I'll show you why they're at the Bagheera.
46
00:02:49,000 --> 00:02:51,010
I hope I will be able to see debug error.
47
00:02:51,610 --> 00:02:52,510
Oh, OK, we don't.
48
00:02:52,570 --> 00:02:55,150
We can't have here the elevator with you.
49
00:02:55,150 --> 00:02:57,730
Back your statements because of the excellent.
50
00:02:58,760 --> 00:03:02,930
All right, so let's prevent this here, let's go to Becky to Jason.
51
00:03:04,170 --> 00:03:08,640
Go to sleep lead rules, a little variety that you would like to buy today by get us a lot of, I don't
52
00:03:08,640 --> 00:03:13,140
know, debugger and let's write the bill, disable this roll slide here.
53
00:03:13,260 --> 00:03:13,710
Zero.
54
00:03:15,300 --> 00:03:23,610
Reiterate now are a cold, so go to your terminal, go right out and look around here again and parents
55
00:03:23,610 --> 00:03:25,890
set, no, I should walk with a debugger as well.
56
00:03:27,210 --> 00:03:28,050
OK, perfect.
57
00:03:29,240 --> 00:03:34,880
The browser was refreshed here, maybe a couple of times to reflect in order to see our code.
58
00:03:35,150 --> 00:03:37,580
But you can see that the nothing here is not really there.
59
00:03:37,850 --> 00:03:44,630
It's not really the value of the 10, but it's actually object in which you have this value property,
60
00:03:44,630 --> 00:03:45,800
which is the value of that.
61
00:03:46,010 --> 00:03:49,460
But the Jazz is interpreting it as a value tensor.
62
00:03:49,460 --> 00:03:50,690
You donate to all the time, right?
63
00:03:50,720 --> 00:03:51,620
The total value.
64
00:03:52,620 --> 00:03:59,280
OK, but I guess it would work if I would go back here and I would like to, I would like to access
65
00:03:59,280 --> 00:04:04,800
this object now right here, though the value, I guess this would work other account of the value.
66
00:04:07,860 --> 00:04:08,520
OK.
67
00:04:09,090 --> 00:04:12,600
Well, actually, this vote on these were doing work at all.
68
00:04:13,980 --> 00:04:14,760
My mistake?
69
00:04:17,040 --> 00:04:17,640
OK, guys.
70
00:04:17,750 --> 00:04:20,460
But my point here is that.
71
00:04:21,650 --> 00:04:24,350
But you are getting here from the ref is not the URL value.
72
00:04:25,680 --> 00:04:27,840
But it's an object that is dropping your value.
73
00:04:28,520 --> 00:04:28,900
OK.
74
00:04:28,920 --> 00:04:30,120
And that's why you can change it.
75
00:04:31,630 --> 00:04:34,450
If you understand this concept, you can go to the next lecture, guys.
76
00:04:34,480 --> 00:04:40,390
I will show you now why it's working and yeah, we'll show you more explanations of this.
77
00:04:41,020 --> 00:04:42,850
For example, I've opened here console.
78
00:04:44,620 --> 00:04:52,390
Allocated here two values, right, I will create here, let you not say my number is 10.
79
00:04:54,220 --> 00:04:57,120
All cleared here, I'll let my other number.
80
00:04:59,100 --> 00:05:04,860
No, it's not my other number is my number and they're my number.
81
00:05:06,060 --> 00:05:11,500
So my number and my other number will be 10, because I said to them, my other number, my number of
82
00:05:11,500 --> 00:05:12,850
which is holding value 10.
83
00:05:12,870 --> 00:05:14,510
So my number is 10.
84
00:05:14,760 --> 00:05:16,620
And also my other number is that.
85
00:05:17,070 --> 00:05:19,120
But then I will be changing my numbers over there.
86
00:05:19,140 --> 00:05:22,890
My number is equal to one thousand.
87
00:05:24,220 --> 00:05:31,360
Then my number will be 1000, but my other number, they'll be still 10 because this copy, this called
88
00:05:31,360 --> 00:05:35,740
copying by value, but you are copying by value, you are creating the new copy of the value.
89
00:05:36,350 --> 00:05:42,070
OK, but when you are copying the objects or errors, they are copied by the reference.
90
00:05:42,990 --> 00:05:43,730
What does it mean?
91
00:05:43,750 --> 00:05:44,470
I will show example.
92
00:05:44,470 --> 00:05:47,170
I will just reiterate here so I can again defend.
93
00:05:47,170 --> 00:05:50,440
Here are my number right here, my number.
94
00:05:50,450 --> 00:05:54,030
But in this case, my number you'll be there are value.
95
00:05:54,040 --> 00:05:57,160
But will the object that will hold the value of 10?
96
00:05:58,720 --> 00:06:04,260
I will create him led to my other number, and this will hold the value of my number.
97
00:06:05,640 --> 00:06:11,370
So as in the previous example, my number and my other number, they're holding the boat value.
98
00:06:11,370 --> 00:06:11,640
10.
99
00:06:12,930 --> 00:06:21,330
But here I copied by the reference boat, which means that both my number and my other number, they're
100
00:06:21,330 --> 00:06:25,600
pointing to the same spot into the memory, which holds this object value of 10.
101
00:06:25,650 --> 00:06:26,130
OK.
102
00:06:26,610 --> 00:06:27,480
So both of these?
103
00:06:29,650 --> 00:06:30,400
My number.
104
00:06:31,700 --> 00:06:34,340
And my other number, they're pointing to the same thing in a memory.
105
00:06:35,330 --> 00:06:37,940
So if I will increment one, I will also increment the other.
106
00:06:37,950 --> 00:06:39,650
Durbin, I'll show you.
107
00:06:41,040 --> 00:06:44,550
So the I right here now, my no dollar value.
108
00:06:45,940 --> 00:06:50,470
Plus plus products like what they like it, it's not a plus plus it's a little porky or in this case,
109
00:06:50,470 --> 00:06:53,830
it looks like my number of value is equal to one thousand.
110
00:06:55,370 --> 00:07:00,470
Now, my number will be very 1000, and most of my other number will be valuable thousand.
111
00:07:01,660 --> 00:07:02,040
OK.
112
00:07:02,950 --> 00:07:10,660
And the same thing other where I've been able to go for my other number, the value is equal to five
113
00:07:10,660 --> 00:07:11,110
hundred.
114
00:07:12,530 --> 00:07:19,520
Then my other number really value of 100 and also my number will be five.
115
00:07:21,050 --> 00:07:24,110
And that's a similar to the thing what's happening?
116
00:07:24,410 --> 00:07:25,280
What's happening here?
117
00:07:26,540 --> 00:07:26,870
OK.
118
00:07:27,020 --> 00:07:30,940
So that's why in the first case, you couldn't see that they are getting actual up.
119
00:07:31,310 --> 00:07:34,900
They took the other account, but they are updating only the count there.
120
00:07:34,910 --> 00:07:38,180
If we are just basically waiting, that is the proper object around the value.
121
00:07:38,540 --> 00:07:44,420
The View is handling it behind the scenes and providing it as their own value for us on the screens.
122
00:07:45,180 --> 00:07:47,150
But in the background, does it object?
123
00:07:50,000 --> 00:07:56,180
OK, I hope this is clear, if any, corrections to it, you know what to do and let's continue into
124
00:07:56,180 --> 00:07:57,050
next year.
11255
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.