< Return to Video

A Tour of Programming on Khan Academy

  • 0:02 - 0:06
    Okay, so now you've seen how cool
    just a short program can be
  • 0:06 - 0:08
    so hopefully you're
    really excited to keep going
  • 0:08 - 0:09
    with programming on Khan Academy.
  • 0:09 - 0:13
    We want to give you a little
    tour of what you can expect.
  • 0:13 - 0:17
    When we want to teach new concepts
    we'll use coding talkthroughs
  • 0:17 - 0:19
    where we'll write code
    on the left side, over here,
  • 0:19 - 0:21
    and we'll see the result
    on the right side,
  • 0:21 - 0:23
    constantly updating
    as we change the code.
  • 0:24 - 0:26
    We'll also be talking
    about what we're writing,
  • 0:26 - 0:28
    so make sure you have your
    headphones or your speakers on.
  • 0:29 - 0:32
    To get started with a
    talkthrough, just click Play.
  • 0:32 - 0:35
    And Pause if you want to study
    something that we've done.
  • 0:36 - 0:38
    You can even change
    the code yourself then,
  • 0:38 - 0:39
    and see the result update.
  • 0:40 - 0:43
    Like maybe, I think that
    Winston is actually an alien
  • 0:43 - 0:46
    from this crazy planet
    with purple faces,
  • 0:46 - 0:50
    and I just think that he should
    have really, really big eyes.
  • 0:50 - 0:52
    Whoa! Bug eyes!
  • 0:52 - 0:54
    Programming isn't just about
  • 0:54 - 0:56
    going through the tutorials
    that we've given you.
  • 0:56 - 0:58
    Our favorite part about programming
  • 0:58 - 1:00
    is the exploration
    and the creativity of it.
  • 1:01 - 1:03
    That means that when you wake
    up in the middle of the night
  • 1:03 - 1:05
    with an idea for a completely new program,
  • 1:06 - 1:09
    just log on and click New Program.
  • 1:09 - 1:12
    Once you've done that, you'll get
    a blank editor and a blank canvas,
  • 1:12 - 1:15
    and the world will be
    your programmatic playground.
  • 1:15 - 1:16
    So, you might not remember
    how to do things.
  • 1:16 - 1:18
    You can look down at the
    documentation,
  • 1:18 - 1:21
    and remember, "Oh yeah, okay,
    I want the ellipse function,
  • 1:22 - 1:26
    and then I'm going to use
    the draw function, okay."
  • 1:26 - 1:28
    Alright so we go up here,
  • 1:29 - 1:32
    and we use some variables there.
  • 1:35 - 1:37
    And then we hope it runs.
  • 1:37 - 1:40
    Oh! But we got a problem, uh-oh:
    'mouseZ is not defined.'
  • 1:40 - 1:42
    Oh, okay...okay, that's fine.
  • 1:42 - 1:44
    It's actually supposed to be 'mouseY.'
  • 1:44 - 1:46
    Oh! And now it works.
    And so here's the point:
  • 1:46 - 1:48
    It's totally okay to make mistakes.
  • 1:48 - 1:50
    You should make mistakes.
  • 1:50 - 1:52
    That's what we programmers do,
    all the time.
  • 1:52 - 1:54
    We just break things,
    and make mistakes,
  • 1:54 - 1:55
    and then we learn from them.
  • 1:57 - 1:59
    Now once I've made my
    amazing new program,
  • 1:59 - 2:01
    and I'm really satisfied with it,
  • 2:01 - 2:02
    I can save it,
  • 2:02 - 2:06
    give it a really nice, descriptive name,
  • 2:06 - 2:09
    like Circle Drawy ThingyBobber.
  • 2:09 - 2:12
    Maybe, Mister Circle Drawy ThingyBobber.
  • 2:12 - 2:14
    I can save that,
  • 2:15 - 2:17
    and then other people
    can actually find it!
  • 2:17 - 2:20
    But creativity isn't just about
    creating completely new things,
  • 2:20 - 2:23
    it's just as much about building
    on top of existing things,
  • 2:23 - 2:25
    and taking them in new directions.
  • 2:25 - 2:27
    That's the power of the spin-off.
  • 2:27 - 2:31
    So now that I've saved this program,
    I could actually go and modify it.
  • 2:31 - 2:34
    And if I consider my new
    program to be different,
  • 2:34 - 2:36
    I can just go, oh!
    Save as a spin-off.
  • 2:36 - 2:42
    Alright so this one's like
    Mister BIG Circle Drawy ThingyBobber.
  • 2:45 - 2:47
    But you don't just have to
    spin-off your own programs,
  • 2:47 - 2:50
    you can spin-off anyone's programs,
  • 2:50 - 2:53
    so we've made it really easy for you
    to find other people's programs.
  • 2:53 - 2:56
    You can browse the Hot, the
    Spotlight, the Top, the Recent.
  • 2:57 - 2:58
    I mean, I spend my Friday nights
  • 2:58 - 3:00
    just browsing programs on Khan Academy
  • 3:00 - 3:02
    because I find so many cool things
  • 3:02 - 3:04
    that I would have never thought of!
  • 3:05 - 3:08
    So some people make games,
    like Doodle Jump--
  • 3:08 - 3:11
    you ever played that on the mobile phone?
    It's a really fun game,
  • 3:11 - 3:15
    and somebody made
    this version on here, and--
  • 3:15 - 3:16
    Oh man!!...okay...
  • 3:16 - 3:18
    Ohh!... oh I've almost got it!
  • 3:18 - 3:19
    Aargh!
  • 3:19 - 3:22
    Alright...alright...
    I'll play that again later.
  • 3:22 - 3:23
    People make simulations,
  • 3:23 - 3:25
    so if you want to understand
    how a pendulum works,
  • 3:25 - 3:27
    like if you're in physics class,
  • 3:27 - 3:29
    you're going to do it
    in a much more fun way
  • 3:29 - 3:31
    by using this simulation here.
  • 3:31 - 3:33
    And then you can go
    and modify things on the side
  • 3:33 - 3:36
    to see how different variables
    affect the pendulum.
  • 3:37 - 3:40
    People make drawings,
    like of their favorite cartoon characters.
  • 3:40 - 3:43
    This is my favorite,
    the TARDIS from Dr. Who.
  • 3:43 - 3:46
    And if you're not watching
    Dr. Who yet, you really should,
  • 3:46 - 3:49
    because as you can see,
    from all the programs
  • 3:49 - 3:51
    and spin-offs on Khan Academy,
  • 3:51 - 3:53
    it's a really cool show.
  • 3:53 - 3:56
    People make charts or
    even animated charts.
  • 3:57 - 4:00
    Some people make really trippy
    animations, like this one.
  • 4:00 - 4:03
    I could just watch this for hours,
    and get hypnotized by it.
  • 4:04 - 4:06
    And you can see that
    lots of other people liked it, too,
  • 4:06 - 4:08
    because they made
    all these spin-offs of it, right?
  • 4:09 - 4:12
    Because that's the thing,
    if you find a program that you like,
  • 4:12 - 4:13
    you can just start tinkering with it,
  • 4:13 - 4:17
    and seeing, like, "Oh, well what if
    I change this, and I change this...
  • 4:17 - 4:21
    and maybe I change this, here.
    How does it change it?"
  • 4:22 - 4:24
    And you may not even
    understand it entirely at first,
  • 4:24 - 4:25
    but the more you tinker with it,
  • 4:25 - 4:27
    and the more you play with the code,
  • 4:27 - 4:28
    you get a better feel for it,
  • 4:28 - 4:30
    and then maybe
    you come up with this variation
  • 4:30 - 4:32
    that you think is really cool,
  • 4:32 - 4:35
    and then you'll save it as a spin-off
    and say, like, "Alright!
  • 4:35 - 4:39
    This is my Really Cool version
    of the Hypnosaic.
  • 4:40 - 4:42
    And then you can save it,
    and other people can find it.
  • 4:44 - 4:46
    But maybe you want to ask
    a question about it, right?
  • 4:46 - 4:48
    Maybe you don't quite
    understand how something works.
  • 4:48 - 4:52
    Well, just go to the Questions panel,
    and say like, oh, okay, well...
  • 4:53 - 4:57
    "Why did you start your variables with 'i'?
  • 4:58 - 5:00
    Do you work for Apple?"
  • 5:01 - 5:02
    And you can ask your question,
  • 5:02 - 5:04
    and hopefully the person
    who created it will answer it,
  • 5:05 - 5:08
    and if you find a question that
    you know the answer to,
  • 5:09 - 5:10
    then answer them, and say, like,
  • 5:10 - 5:13
    "Hey! Yeah, you can,
  • 5:14 - 5:15
    here's where I did it:"
  • 5:15 - 5:18
    And a lot of times you can answer
    with actually a link
  • 5:18 - 5:19
    to another scratchpad,
  • 5:19 - 5:21
    where you actually
    answered their question.
  • 5:21 - 5:25
    Now if you just want to say
    how awesome it is, or give a tip,
  • 5:25 - 5:28
    you can go to the Tips & Feedback panel,
  • 5:28 - 5:34
    And say, like, "Wow! This is
    the coolest thing I've seen today."
  • 5:35 - 5:37
    And then the creator will feel really good
  • 5:37 - 5:40
    because they got this compliment from you.
  • 5:40 - 5:42
    And that's one of the awesome
    things about programming,
  • 5:42 - 5:44
    is that you can put out
    these things in the world,
  • 5:44 - 5:46
    and you never know
    who's going to find them,
  • 5:46 - 5:49
    and whose day you're going
    to make better, because they found
  • 5:49 - 5:52
    this really cool, creative thing
    that you came up with.
  • 5:53 - 5:56
    So, we want this to be a community
    of people learning from each other,
  • 5:56 - 5:58
    and sharing their creations
    with each other.
  • 5:58 - 6:01
    Because that's a big part of what
    we love about programming.
  • 6:02 - 6:03
    It will definitely be hard at first,
  • 6:03 - 6:06
    and your first programs,
    they'll start off small.
  • 6:06 - 6:08
    But as you keep going,
    you'll be able to do more and more,
  • 6:08 - 6:11
    until one day you realize that, wow!
  • 6:11 - 6:14
    You can do almost anything
    in programming!
Title:
A Tour of Programming on Khan Academy
Description:

We'll take you on a tour of what it's like to learn programming on Khan Academy - taking the tutorials, creating new programs, making spin-offs of other people's sweet programs, and helping each other out along the way. Join us at http://khanacademy.org/cs

more » « less
Video Language:
English
Duration:
06:15

English subtitles

Revisions