WEBVTT 00:00:06.041 --> 00:00:10.240 Which grade are you in? second, tenth grade, first grade 00:00:10.240 --> 00:00:12.417 I was in the eight grade when I learned to program. 00:00:12.417 --> 00:00:15.206 I got my first computer when I was in the sixth grade. 00:00:16.759 --> 00:00:20.101 What me gets excited is being able to fix peoples problems 00:00:20.309 --> 00:00:23.538 You can express yourself; you can build things from an idea. 00:00:24.486 --> 00:00:27.083 Computer science is the basis for a lot of the things 00:00:27.083 --> 00:00:31.153 students and proffesionals will do for the next 20 or 30 years. 00:00:31.153 --> 00:00:34.122 I like programming because I like helping people. 00:00:34.219 --> 00:00:39.173 I get the opportunity to build something that's gonna make peoples life easier. 00:00:39.319 --> 00:00:41.493 I think this is the closest thing we have to superpower. 00:00:41.607 --> 00:00:43.763 Getting started is the most important part. 00:00:43.868 --> 00:00:48.025 I'm a beginner and I want you to learn with me. 00:00:48.099 --> 00:00:49.339 Hi, my name is Lyndsey 00:00:49.339 --> 00:00:53.069 I majored in theaterian college, but I also majored in computer science. 00:00:53.069 --> 00:00:56.086 And now I'm model, act and write my own apps. 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. 00:01:01.440 --> 00:01:04.795 You'll create snowflakes and patterns if you ice-skate 00:01:04.798 --> 00:01:07.689 and make a winterwonderland which you can share with your friends. 00:01:08.395 --> 00:01:11.574 In the next hour, you're going to learn the basics of how to code. 00:01:12.651 --> 00:01:14.966 Traditionally programming is usually in text, 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. 00:01:20.516 --> 00:01:23.151 This is how even university students learn the basics. 00:01:23.151 --> 00:01:26.021 Under the hood, you are still creating code. 00:01:26.021 --> 00:01:30.691 The concepts you will be learning are concepts which computer programmers are using every day 00:01:30.691 --> 00:01:33.217 and are the foundation to computer science. 00:01:34.202 --> 00:01:37.936 A PROGRAM is a set of instructions that tell a computer what to do. 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. 00:01:44.224 --> 00:01:46.882 We will use this later to create more complex patterns. 00:01:48.418 --> 00:01:50.790 Your screen is split into three main parts. 00:01:50.916 --> 00:01:54.746 On the left is the ice surface where you will run your program. 00:01:55.995 --> 00:01:59.144 The instructions for each level are written right below the surface. 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. 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. 00:02:10.880 --> 00:02:14.848 To move around the ice surface, you wiull use the "move forward"-block. 00:02:15.005 --> 00:02:19.994 Here the move forward block says, move forward by 100 pixels. 00:02:20.432 --> 00:02:23.316 When we press run... What happens? 00:02:23.316 --> 00:02:28.896 Elsa moves forward a certain amount on the screen... 100 pixels in fact. 00:02:28.896 --> 00:02:32.586 Pixels are basically very tiny squares on your computer screen. 00:02:33.036 --> 00:02:37.699 The other block in the puzzle sais: "turn right by 90 degrees". 00:02:38.035 --> 00:02:42.763 When we use the "turn right"-block, that makes elsa turn a certain amount. 00:02:43.084 --> 00:02:45.816 You can play around with how far you want elsa to turn. 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... 00:02:52.479 --> 00:02:54.418 and this is an 120 degree turn. 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