< Return to Video

A Tour of Programming on Khan Academy

  • 0:00 - 0:05
    Okay! So now you have seen how cool just a short program can be.
  • 0:05 - 0:09
    So hopefully you really excited keep going with programming in Khan Academy!
  • 0:09 - 0:13
    We want to give you a little tour of what you can expect.
  • 0:13 - 0:16
    When we do want to teach new concepts,
  • 0:16 - 0:19
    we use coding talk, we will write code on the left side over here
  • 0:19 - 0:23
    and will see the result over the right side constantly updating as you change the code
  • 0:23 - 0:26
    also we are talking what we are writing
  • 0:26 - 0:28
    so make sure you have your headphone and your speaker on
  • 0:28 - 0:31
    to get started with the walkthrough
  • 0:31 - 0:33
    just click "Play"
  • 0:33 - 0:34
    and pause if you want to study something we have done
  • 0:34 - 0:40
    you can even change the code yourself and see the result updated
  • 0:40 - 0:44
    I think that winstone is actually a alien thing
  • 0:44 - 0:46
    it is a crazy planning with purple faces
  • 0:46 - 0:48
    and I just think that...
  • 0:48 - 0:51
    he should has really really BIG EYES!! WOW!!! Poor guys!
  • 0:51 - 0:55
    Programming isn't just about going to the tutorials that we have given you
  • 0:55 - 1:00
    Our thinking about programming is the exploration and the creativity of it
  • 1:00 - 1:05
    that mean when you wake up in the middle of night with a idea of a completely new program
  • 1:05 - 1:09
    just log on and click "New Program"
  • 1:09 - 1:12
    Once you have done that, you get a plain editor and a plain canvas
  • 1:12 - 1:15
    and the world will be your programmatic playground
  • 1:15 - 1:17
    so you may not remember how to do thing
  • 1:17 - 1:18
    you can look down at the adaptation
  • 1:18 - 1:21
    and remember... oh yeah.. ok... I want these clips...functions....
  • 1:21 - 1:25
    and I am going to use the "draw" function
  • 1:25 - 1:27
    okay alright... so we go up here
  • 1:27 - 1:31
    and we set variables there
  • 1:35 - 1:36
    and then we hope it runs...
  • 1:36 - 1:38
    Oh! but we've got a problem!
  • 1:38 - 1:40
    "mouseZ" is not defined!
  • 1:40 - 1:42
    ok! that's fine.
  • 1:42 - 1:44
    that "mouseZ" should be "mouseY" [ellipse(x, y, width, height) ]
  • 1:44 - 1:46
    now it works!
  • 1:46 - 1:48
    Here is the point: It is totally ok to make mistakes!!
  • 1:48 - 1:50
    you should make mistakes!
  • 1:50 - 1:52
    that's what programming is to do all the time
  • 1:52 - 1:54
    we just break things and make mistakes and then we learn from that
  • 1:56 - 2:00
    Now once I made my amazingly new program and I am really satisfied with it
  • 2:00 - 2:02
    I can save it
  • 2:02 - 2:06
    give it a really nice descriptive name...
  • 2:06 - 2:08
    like "Circle Drawy ThingyBobbler" = =""
  • 2:08 - 2:12
    "Mister Circle Drawy ThingyBobbler" = =""""
  • 2:12 - 2:14
    I can save that
  • 2:14 - 2:16
    and then other people can actually find it
  • 2:17 - 2:20
    but creativity isn't just about purely building new thing
  • 2:20 - 2:22
    it is just as much about building on top of existing things
  • 2:22 - 2:24
    and taking them a new direction
  • 2:24 - 2:26
    that's the power of the "Spin Off"!
  • 2:26 - 2:29
    so now I gonna save this program
  • 2:29 - 2:30
    I can actually go and modify it
  • 2:30 - 2:34
    and if I tune my new parameter different
  • 2:34 - 2:36
    I can just go... save the spin off
  • 2:36 - 2:42
    this one like "Mister BIG Circle Drawy ThingyBobbler" = =""""
  • 2:45 - 2:48
    but you don't need just have to spin off your own program
  • 2:48 - 2:50
    you can spin off anyone's programs
  • 2:50 - 2:52
    so we made a really easy field to find other people's program
  • 2:52 - 2:55
    you can browse the "Hot" / "Spotlight" / "Top" / "Recent"
  • 2:56 - 2:59
    I mean I spent my Friday night just browsing programs in Khan Academy
  • 2:59 - 3:04
    because I find so many cool thing that I would have never thought of
  • 3:04 - 3:07
    So some people made games, right?
  • 3:07 - 3:11
    like "doodle jump" you can played that on the mobile phone is a really fun game
  • 3:11 - 3:13
    and somebody made this version on here...
  • 3:16 - 3:18
    OH... Almost got it!
  • 3:18 - 3:21
    HAA~~~~~OK I will play that again later
  • 3:22 - 3:23
    People make simulation...
  • 3:23 - 3:25
    so if you want to understand how pendulum works,
  • 3:25 - 3:28
    like you have in the Physics class,
  • 3:28 - 3:30
    you can do in a much more fun way by using this simulation here
  • 3:30 - 3:33
    and then you can go and modify things on the side
  • 3:33 - 3:36
    to see how different variables affects the pendulum
  • 3:37 - 3:40
    People make drawing like the famous cartoon character (Despicable ME)
  • 3:40 - 3:42
    This is my favorite --- the Tardis of Doctor Who
  • 3:42 - 3:45
    and if you not watching Dr. Who yet, you really should (Advertising= =)
  • 3:46 - 3:50
    because as you can see, from all the programs it has been our song Khan Academy
  • 3:50 - 3:52
    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 creepy animation like this one
  • 4:00 - 4:03
    I think if you watches for hours will get hypnotized by it
  • 4:03 - 4:08
    you see lots of other people like it too and they made all these spin-offs
  • 4:09 - 4:11
    Last thing, if you find the program you like
  • 4:11 - 4:14
    you can just start tinkering it and see like
  • 4:14 - 4:17
    what if I change this... and I change this...
  • 4:17 - 4:20
    maybe I change here...
  • 4:20 - 4:22
    how is it changes...
  • 4:22 - 4:24
    you may not even understand entirely at first
  • 4:24 - 4:25
    but the more you tinker with it
  • 4:25 - 4:27
    the more you play with the code
  • 4:27 - 4:28
    you get a better feel for it
  • 4:28 - 4:31
    and then maybe when you come up with these variations that you think is really cool
  • 4:31 - 4:33
    and then you can save it as spinoff and
  • 4:33 - 4:35
    say like... alright....it is my...
  • 4:35 - 4:39
    really cool Pameia's Hypnosaic here
  • 4:39 - 4:41
    and then you can save it
  • 4:41 - 4:42
    and other people can find it
  • 4:42 - 4:45
    but maybe you want to ask a question about it
  • 4:45 - 4:48
    right? maybe you don't quite understand how something works
  • 4:48 - 4:50
    we are going to the question panel
  • 4:50 - 4:52
    and say like okay...
  • 4:52 - 4:59
    why did you start your variables with i? Did you work for Apple? ^_^
  • 5:00 - 5:04
    you can ask any question and hopefully the person created it will answer it
  • 5:04 - 5:07
    and if you find the question you know the answer too
  • 5:07 - 5:12
    then I answer it like... Hey! Yeah! You can!
  • 5:12 - 5:14
    here's where I did it.
  • 5:14 - 5:18
    you can answer with that to link to another scratchpad
  • 5:18 - 5:21
    rewriting to answer their question
  • 5:21 - 5:24
    now if you just want to say how awesome it is
  • 5:24 - 5:25
    or give a tip
  • 5:25 - 5:27
    you can go to the tips and feedback panel
  • 5:28 - 5:34
    say like "WoW! This is the coolest thing I have seen today!"
  • 5:35 - 5:36
    and then the creator will feel really good
  • 5:36 - 5:39
    because they got these compliment from you
  • 5:39 - 5:42
    and that's one of the awesome thing about programming is that
  • 5:42 - 5:44
    you can put all these thing in the world
  • 5:44 - 5:46
    and you never know who is gonna to find it
  • 5:46 - 5:48
    and who's day you are gonna to make better
  • 5:48 - 5:51
    because they found these really cool creative thing that you come 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 creation with each other
  • 5:58 - 6:01
    because this is a big part of what we love about programming
  • 6:01 - 6:03
    it will definitely harder first
  • 6:03 - 6:06
    and your first program so start off small
  • 6:06 - 6:07
    but as you keep going
  • 6:07 - 6:08
    you will be able to do more and more
  • 6:08 - 6:11
    until one day you realized that
  • 6:11 - 6:15
    Wow! 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, British subtitles

Revisions