0:00:01.690,0:00:04.700
Let's animate Winston[br]using the shortcuts that you just learned.
0:00:05.110,0:00:07.656
So, here we've got Winston with his eyes
0:00:07.656,0:00:09.952
and we've got this eyeSize variable.
0:00:09.952,0:00:12.750
So if we wanted to make[br]Winston's eyes get bigger
0:00:12.750,0:00:15.644
we could just say "eyeSize += 1,"
0:00:15.644,0:00:18.538
adding one pixel to the size of the eyes
0:00:18.538,0:00:21.432
each time, and whoah! [br]Look at it, it's buggin' out!
0:00:21.432,0:00:24.015
Let's restart -- whoah! Bug out! Bug Out!
0:00:24.685,0:00:26.039
Now, that's pretty cool.
0:00:26.039,0:00:28.073
And, it turns out in programming
0:00:28.073,0:00:30.107
we actually add one to variables a lot.
0:00:30.107,0:00:32.143
Maybe while animating but also,
0:00:32.143,0:00:34.162
you'll see there's a lot of other reasons
0:00:34.162,0:00:36.451
why we add one to variables later.
0:00:36.451,0:00:39.280
Programmers got bored [br]of writing "+= 1" all the time
0:00:39.280,0:00:41.454
because programmers[br]get bored of silly things.
0:00:41.454,0:00:43.757
So they came up with[br]a shorter way of writing it.
0:00:43.757,0:00:48.786
So instead of "eyeSize += 1," [br]we could just write "eyeSize++"
0:00:49.366,0:00:52.295
You see, it will do [br]exactly the same thing.
0:00:52.295,0:00:54.238
It's just a shorter way of doing it.
0:00:54.975,0:00:57.650
And not only do we use [br]this in programming,
0:00:57.650,0:01:00.391
Now most programmers [br]use it in everyday speech.
0:01:00.391,0:01:03.419
Because pretty much [br]we're all familiar with ++.
0:01:03.419,0:01:05.132
And it's an easy way of saying
0:01:05.132,0:01:07.315
that you're making [br]something a little bigger.
0:01:07.315,0:01:09.930
So if we went to Winston's birthday party,
0:01:09.930,0:01:12.619
we might say, "Oh, happy birthday[br]Winston, Winston++!"
0:01:12.619,0:01:14.662
Because Winston just got a year older.
0:01:15.465,0:01:17.556
Or if we just learned a new fact you might be like,
0:01:17.556,0:01:20.516
"Oh, go us, intelligence++!"
0:01:21.514,0:01:23.080
That's pretty fun.
0:01:23.080,0:01:25.886
So when should you use ++ versus +=?
0:01:25.886,0:01:29.605
Well, I think for animation [br]it's cool to use +=, because then
0:01:29.605,0:01:32.136
you can use the number scrubber[br]and you can be like,
0:01:32.136,0:01:35.064
"Whoah! Let's make it -- whoah whoah![br]That was awesome!
0:01:35.064,0:01:38.026
Let's make it really crazy,[br]really different!
0:01:38.026,0:01:41.486
Oh! (laughter) See how fun that is?
0:01:41.700,0:01:44.305
But, you know, depending [br]on what you're doing
0:01:44.305,0:01:46.650
it might be convenient just to say "++."
0:01:46.650,0:01:49.931
And you'll see later[br]that there's lots of times
0:01:49.931,0:01:51.694
when you might want to add one
0:01:51.694,0:01:53.457
to variables, not just for animation,
0:01:53.457,0:01:56.020
where the ++ operator [br]could become even more useful.
0:01:56.020,0:01:58.435
So just keep that in mind[br]when you see that ++
0:01:58.435,0:02:00.595
and try using it in your everyday speech.