1 00:00:06,041 --> 00:00:10,240 Which grade are you in? second, tenth grade, first grade 2 00:00:10,240 --> 00:00:12,417 I was in the eight grade when I learned to program. 3 00:00:12,417 --> 00:00:15,206 I got my first computer when I was in the sixth grade. 4 00:00:16,759 --> 00:00:20,101 What me gets excited is being able to fix peoples problems 5 00:00:20,309 --> 00:00:23,538 You can express yourself; you can build things from an idea. 6 00:00:24,486 --> 00:00:27,083 Computer science is the basis for a lot of the things 7 00:00:27,083 --> 00:00:31,153 students and proffesionals will do for the next 20 or 30 years. 8 00:00:31,153 --> 00:00:34,122 I like programming because I like helping people. 9 00:00:34,219 --> 00:00:39,173 I get the opportunity to build something that's gonna make peoples life easier. 10 00:00:39,319 --> 00:00:41,493 I think this is the closest thing we have to superpower. 11 00:00:41,607 --> 00:00:43,763 Getting started is the most important part. 12 00:00:43,868 --> 00:00:48,025 I'm a beginner and I want you to learn with me. 13 00:00:48,099 --> 00:00:49,339 Hi, my name is Lyndsey 14 00:00:49,339 --> 00:00:53,069 I majored in theaterian college, but I also majored in computer science. 15 00:00:53,069 --> 00:00:56,086 And now I'm model, act and write my own apps. 16 00:00:56,241 --> 00:01:01,295 Let's use code to help Anna and Elsa as they explore the magic and beauty of ice. 17 00:01:01,440 --> 00:01:04,795 You'll create snowflakes and patterns if you ice-skate 18 00:01:04,798 --> 00:01:07,689 and make a winterwonderland which you can share with your friends. 19 00:01:08,395 --> 00:01:11,574 In the next hour, you're going to learn the basics of how to code. 20 00:01:12,651 --> 00:01:14,966 Traditionally programming is usually in text, 21 00:01:14,966 --> 00:01:20,239 but we will use blockly which uses visual blocks, which you can drag and drop to write programs. 22 00:01:20,516 --> 00:01:23,151 This is how even university students learn the basics. 23 00:01:23,151 --> 00:01:26,021 Under the hood, you are still creating code. 24 00:01:26,021 --> 00:01:30,691 The concepts you will be learning are concepts which computer programmers are using every day 25 00:01:30,691 --> 00:01:33,217 and are the foundation to computer science. 26 00:01:34,202 --> 00:01:37,936 A PROGRAM is a set of instructions that tell a computer what to do. 27 00:01:38,929 --> 00:01:43,332 Let's build a code for a program that will help Elsa to create a simple line. 28 00:01:44,224 --> 00:01:46,882 We will use this later to create more complex patterns. 29 00:01:48,418 --> 00:01:50,790 Your screen is split into three main parts. 30 00:01:50,916 --> 00:01:54,746 On the left is the ice surface where you will run your program. 31 00:01:55,995 --> 00:01:59,144 The instructions for each level are written right below the surface. 32 00:01:59,768 --> 00:02:05,757 This middle area is the toolbox and each of these blocks is an action Elsa and Anna can do. 33 00:02:05,757 --> 00:02:10,683 The white space on the right is called the workspace and this is where we will build our program. 34 00:02:10,880 --> 00:02:14,848 To move around the ice surface, you wiull use the "move forward"-block. 35 00:02:15,005 --> 00:02:19,994 Here the move forward block says, move forward by 100 pixels. 36 00:02:20,432 --> 00:02:23,316 When we press run... What happens? 37 00:02:23,316 --> 00:02:28,896 Elsa moves forward a certain amount on the screen... 100 pixels in fact. 38 00:02:28,896 --> 00:02:32,586 Pixels are basically very tiny squares on your computer screen. 39 00:02:33,036 --> 00:02:37,699 The other block in the puzzle sais: "turn right by 90 degrees". 40 00:02:38,035 --> 00:02:42,763 When we use the "turn right"-block, that makes elsa turn a certain amount. 41 00:02:43,084 --> 00:02:45,816 You can play around with how far you want elsa to turn. 42 00:02:46,055 --> 00:02:52,314 The angle is measured from the path ahead of Elsa, so this is the 90 degree turn... 43 00:02:52,479 --> 00:02:54,418 and this is an 120 degree turn. 44 00:02:54,906 --> 00:02:59,731 And remember, you can change the number of pixels or degrees by clicking on the arrows next to them