[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.26,0:00:05.26,Default,,0000,0000,0000,,One of the most important concepts in computer\Nscience is how to define new commands, how Dialogue: 0,0:00:05.26,0:00:10.96,Default,,0000,0000,0000,,to add your own words to a computer language.\NMost computer languages have only about one Dialogue: 0,0:00:10.96,0:00:17.29,Default,,0000,0000,0000,,hundred words or commands. The art and magic\Nis in defining your own new words out of these Dialogue: 0,0:00:17.29,0:00:23.21,Default,,0000,0000,0000,,building blocks. We do this all the time in\Nsports. For example, in basketball, you start Dialogue: 0,0:00:23.21,0:00:28.48,Default,,0000,0000,0000,,by learning how to dribble, how to do a lay-up,\Nhow to rebound. Once you've learned these Dialogue: 0,0:00:28.48,0:00:33.01,Default,,0000,0000,0000,,really basic moves, you learn new moves and\Nput together these building blocks, like a Dialogue: 0,0:00:33.01,0:00:38.44,Default,,0000,0000,0000,,pick and roll or give and go. You can then\Ngo from there to do more complex plays. Once Dialogue: 0,0:00:38.44,0:00:44.71,Default,,0000,0000,0000,,you learn that play and give it a name, everybody\Non the team knows how to do it. Similarly Dialogue: 0,0:00:44.71,0:00:49.63,Default,,0000,0000,0000,,once you've taught a computer how to do an\Naction once using these sequences of commands, Dialogue: 0,0:00:49.63,0:00:55.16,Default,,0000,0000,0000,,you can make up your own name for that action\Nso it's easy to repeat it later. When you Dialogue: 0,0:00:55.16,0:01:00.68,Default,,0000,0000,0000,,define your own command and give it a name,\Nthat's called a function. Now we're going Dialogue: 0,0:01:00.68,0:01:08.07,Default,,0000,0000,0000,,to use functions to help the bee. In this\Nexample, our function is called get 2 nectar, Dialogue: 0,0:01:08.07,0:01:13.98,Default,,0000,0000,0000,,this green block right here. We know what\Nget 2 nectar does by looking at this grey Dialogue: 0,0:01:13.98,0:01:21.36,Default,,0000,0000,0000,,box which is the function definition. If we\Nlook inside there, the get 2 nectar is going Dialogue: 0,0:01:21.36,0:01:28.23,Default,,0000,0000,0000,,to get nectar and then get nectar again. Always\Nlook at what's inside the grey box so that Dialogue: 0,0:01:28.23,0:01:31.54,Default,,0000,0000,0000,,you know what these green function blocks\Ncan do.