Return to Video

Frozen - Hour of Code Introduction

  • 0:01 - 0:05
    Which grade are you in?
    second, tenth grade, first grade
  • 0:10 - 0:12
    I was in the eight grade when I learned to program.
  • 0:12 - 0:15
    I got my first computer when I was in the sixth grade.
  • 0:17 - 0:20
    What gets me excited is
    being able to fix peoples problems.
  • 0:20 - 0:24
    You can express yourself;
    you can build things from an idea.
  • 0:24 - 0:27
    Computer science is the basis for a lot of the things
  • 0:27 - 0:31
    that students and proffesionals will do
    for the next 20 or 30 years.
  • 0:31 - 0:34
    I like programming because I like helping people.
  • 0:34 - 0:39
    I get the opportunity to build something
    that's gonna make people's life easier.
  • 0:39 - 0:41
    I think this is the closest thing we have to superpower.
  • 0:42 - 0:44
    Getting started is the most important part.
  • 0:44 - 0:48
    I'm a beginner myself and I want you to learn with me.
  • 0:48 - 0:49
    Hi, my name is Lyndsey,
  • 0:49 - 0:53
    I majored in theater in college,
    but I also majored in computer science.
  • 0:53 - 0:56
    And now I model, act and write my own apps.
  • 0:56 - 1:01
    Let's use code to help Anna and Elsa
    as they explore the magic and beauty of ice.
  • 1:01 - 1:05
    You'll create snowflakes and patterns
    as you ice-skate
  • 1:05 - 1:08
    and make a winterwonderland
    which you can share with your friends.
  • 1:08 - 1:12
    In the next hour,
    you're going to learn the basics of how to code.
  • 1:13 - 1:15
    Traditional programming is usually in text,
  • 1:15 - 1:20
    but we will use blockly which uses visual blocks,
    thatyou can drag and drop to write programs.
  • 1:21 - 1:23
    This is how even university students learn the basics.
  • 1:23 - 1:26
    Under the hood, you are still creating code.
  • 1:26 - 1:31
    The concepts that you will be learning
    are concepts which computer programmers are using every day
  • 1:31 - 1:33
    and are the foundation of computer science.
  • 1:34 - 1:38
    A PROGRAM is a set of instructions
    that tell a computer what to do.
  • 1:39 - 1:43
    Let's build a code for a program that will help Elsa to create a simple line.
  • 1:44 - 1:47
    We will use this later to create more complex patterns.
  • 1:48 - 1:51
    Your screen is split into three main parts:
  • 1:51 - 1:55
    On the left is the ice surface
    where you will run your program.
  • 1:56 - 1:59
    The instructions for each level
    are written right below the surface.
  • 2:00 - 2:02
    This middle area is the toolbox
  • 2:02 - 2:06
    and each of these blocks
    is an action Elsa and Anna can do.
  • 2:06 - 2:11
    The white space on the right is called the workspace
    and this is where we will build our program.
  • 2:11 - 2:15
    To move around the ice surface, you will use the "move forward"-block.
  • 2:15 - 2:20
    Here the move forward block says:
    "Move forward by 100 pixels".
  • 2:20 - 2:23
    When we press run... What happens?
  • 2:23 - 2:29
    Elsa moves forward a certain amount on the screen...
    100 pixels in fact.
  • 2:29 - 2:33
    Pixels are basically very tiny squares on your computer screen.
  • 2:33 - 2:38
    The other block in the puzzle sais:
    "turn right by 90 degrees".
  • 2:38 - 2:43
    When we use the "turn right"-block,
    that makes elsa turn a certain amount.
  • 2:43 - 2:46
    You can play around with how far you want elsa to turn.
  • 2:46 - 2:52
    The angle is measured from the path ahead of Elsa,
    so this is the 90 degree turn...
  • 2:52 - 2:54
    and this is an 120 degree turn.
  • 2:55 - 3:00
    And remember, you can change the number of pixels or degrees
    by clicking the arrows next to them.
Title:
Frozen - Hour of Code Introduction
Description:

more » « less
Video Language:
English
Team:
Code.org
Project:
Hour of Code
Duration:
03:01

English subtitles

Revisions Compare revisions