1 00:00:00,000 --> 00:00:05,401 Okay! So now you have seen how cool just a short program can be. 2 00:00:05,401 --> 00:00:09,199 So hopefully you really excited keep going with programming in Khan Academy! 3 00:00:09,199 --> 00:00:13,232 We want to give you a little tour of what you can expect. 4 00:00:13,232 --> 00:00:15,828 When we do want to teach new concepts, 5 00:00:15,828 --> 00:00:18,848 we use coding talk, we will write code on the left side over here 6 00:00:18,848 --> 00:00:23,499 and will see the result over the right side constantly updating as you change the code 7 00:00:23,499 --> 00:00:25,661 also we are talking what we are writing 8 00:00:25,661 --> 00:00:28,366 so make sure you have your headphone and your speaker on 9 00:00:28,366 --> 00:00:30,631 to get started with the walkthrough 10 00:00:30,631 --> 00:00:32,570 just click "Play" 11 00:00:32,570 --> 00:00:34,468 and pause if you want to study something we have done 12 00:00:34,468 --> 00:00:39,702 you can even change the code yourself and see the result updated 13 00:00:39,702 --> 00:00:43,719 I think that winstone is actually a alien thing 14 00:00:43,719 --> 00:00:46,048 it is a crazy planning with purple faces 15 00:00:46,048 --> 00:00:47,500 and I just think that... 16 00:00:47,500 --> 00:00:51,308 he should has really really BIG EYES!! WOW!!! Poor guys! 17 00:00:51,308 --> 00:00:55,263 Programming isn't just about going to the tutorials that we have given you 18 00:00:55,263 --> 00:00:59,989 Our thinking about programming is the exploration and the creativity of it 19 00:00:59,989 --> 00:01:05,135 that mean when you wake up in the middle of night with a idea of a completely new program 20 00:01:05,135 --> 00:01:08,533 just log on and click "New Program" 21 00:01:08,533 --> 00:01:12,162 Once you have done that, you get a plain editor and a plain canvas 22 00:01:12,162 --> 00:01:15,265 and the world will be your programmatic playground 23 00:01:15,265 --> 00:01:16,764 so you may not remember how to do thing 24 00:01:16,764 --> 00:01:18,076 you can look down at the adaptation 25 00:01:18,076 --> 00:01:21,131 and remember... oh yeah.. ok... I want these clips...functions.... 26 00:01:21,131 --> 00:01:24,964 and I am going to use the "draw" function 27 00:01:24,964 --> 00:01:27,163 okay alright... so we go up here 28 00:01:27,163 --> 00:01:31,117 and we set variables there 29 00:01:35,008 --> 00:01:36,366 and then we hope it runs... 30 00:01:36,366 --> 00:01:38,410 Oh! but we've got a problem! 31 00:01:38,410 --> 00:01:40,431 "mouseZ" is not defined! 32 00:01:40,431 --> 00:01:42,089 ok! that's fine. 33 00:01:42,104 --> 00:01:44,465 that "mouseZ" should be "mouseY" [ellipse(x, y, width, height) ] 34 00:01:44,465 --> 00:01:45,644 now it works! 35 00:01:45,644 --> 00:01:47,774 Here is the point: It is totally ok to make mistakes!! 36 00:01:47,774 --> 00:01:49,635 you should make mistakes! 37 00:01:49,635 --> 00:01:51,664 that's what programming is to do all the time 38 00:01:51,664 --> 00:01:54,491 we just break things and make mistakes and then we learn from that 39 00:01:56,475 --> 00:02:00,411 Now once I made my amazingly new program and I am really satisfied with it 40 00:02:00,411 --> 00:02:01,798 I can save it 41 00:02:01,798 --> 00:02:05,546 give it a really nice descriptive name... 42 00:02:05,546 --> 00:02:07,993 like "Circle Drawy ThingyBobbler" = ="" 43 00:02:08,331 --> 00:02:12,241 "Mister Circle Drawy ThingyBobbler" = ="""" 44 00:02:12,241 --> 00:02:14,004 I can save that 45 00:02:14,158 --> 00:02:16,032 and then other people can actually find it 46 00:02:17,047 --> 00:02:19,652 but creativity isn't just about purely building new thing 47 00:02:19,652 --> 00:02:22,241 it is just as much about building on top of existing things 48 00:02:22,241 --> 00:02:24,098 and taking them a new direction 49 00:02:24,098 --> 00:02:26,199 that's the power of the "Spin Off"! 50 00:02:26,199 --> 00:02:28,908 so now I gonna save this program 51 00:02:28,908 --> 00:02:30,463 I can actually go and modify it 52 00:02:30,463 --> 00:02:33,828 and if I tune my new parameter different 53 00:02:33,828 --> 00:02:35,986 I can just go... save the spin off 54 00:02:35,986 --> 00:02:42,496 this one like "Mister BIG Circle Drawy ThingyBobbler" = ="""" 55 00:02:44,773 --> 00:02:47,540 but you don't need just have to spin off your own program 56 00:02:47,540 --> 00:02:49,590 you can spin off anyone's programs 57 00:02:49,590 --> 00:02:52,431 so we made a really easy field to find other people's program 58 00:02:52,431 --> 00:02:55,442 you can browse the "Hot" / "Spotlight" / "Top" / "Recent" 59 00:02:56,180 --> 00:02:59,442 I mean I spent my Friday night just browsing programs in Khan Academy 60 00:02:59,442 --> 00:03:03,817 because I find so many cool thing that I would have never thought of 61 00:03:03,817 --> 00:03:06,992 So some people made games, right? 62 00:03:06,992 --> 00:03:10,656 like "doodle jump" you can played that on the mobile phone is a really fun game 63 00:03:10,656 --> 00:03:12,987 and somebody made this version on here... 64 00:03:16,017 --> 00:03:17,949 OH... Almost got it! 65 00:03:17,949 --> 00:03:20,986 HAA~~~~~OK I will play that again later 66 00:03:21,616 --> 00:03:23,156 People make simulation... 67 00:03:23,156 --> 00:03:24,990 so if you want to understand how pendulum works, 68 00:03:24,990 --> 00:03:27,700 like you have in the Physics class, 69 00:03:27,700 --> 00:03:29,907 you can do in a much more fun way by using this simulation here 70 00:03:29,907 --> 00:03:32,538 and then you can go and modify things on the side 71 00:03:32,538 --> 00:03:36,075 to see how different variables affects the pendulum 72 00:03:36,644 --> 00:03:39,598 People make drawing like the famous cartoon character (Despicable ME) 73 00:03:39,598 --> 00:03:42,239 This is my favorite --- the Tardis of Doctor Who 74 00:03:42,239 --> 00:03:45,489 and if you not watching Dr. Who yet, you really should (Advertising= =) 75 00:03:45,673 --> 00:03:49,906 because as you can see, from all the programs it has been our song Khan Academy 76 00:03:50,121 --> 00:03:52,401 It's a really cool show 77 00:03:53,078 --> 00:03:55,822 People make charts or even animated charts 78 00:03:56,745 --> 00:03:59,984 Some people make really creepy animation like this one 79 00:03:59,984 --> 00:04:02,986 I think if you watches for hours will get hypnotized by it 80 00:04:03,493 --> 00:04:07,533 you see lots of other people like it too and they made all these spin-offs 81 00:04:09,394 --> 00:04:11,301 Last thing, if you find the program you like 82 00:04:11,301 --> 00:04:13,649 you can just start tinkering it and see like 83 00:04:13,649 --> 00:04:17,090 what if I change this... and I change this... 84 00:04:17,090 --> 00:04:19,807 maybe I change here... 85 00:04:19,807 --> 00:04:21,533 how is it changes... 86 00:04:21,533 --> 00:04:24,133 you may not even understand entirely at first 87 00:04:24,133 --> 00:04:25,489 but the more you tinker with it 88 00:04:25,489 --> 00:04:27,101 the more you play with the code 89 00:04:27,101 --> 00:04:28,431 you get a better feel for it 90 00:04:28,431 --> 00:04:30,867 and then maybe when you come up with these variations that you think is really cool 91 00:04:30,867 --> 00:04:32,965 and then you can save it as spinoff and 92 00:04:32,965 --> 00:04:34,983 say like... alright....it is my... 93 00:04:34,983 --> 00:04:38,905 really cool Pameia's Hypnosaic here 94 00:04:38,905 --> 00:04:41,035 and then you can save it 95 00:04:41,035 --> 00:04:42,198 and other people can find it 96 00:04:42,198 --> 00:04:45,099 but maybe you want to ask a question about it 97 00:04:45,099 --> 00:04:47,597 right? maybe you don't quite understand how something works 98 00:04:47,597 --> 00:04:49,798 we are going to the question panel 99 00:04:49,798 --> 00:04:51,823 and say like okay... 100 00:04:52,253 --> 00:04:58,652 why did you start your variables with i? Did you work for Apple? ^_^ 101 00:05:00,344 --> 00:05:03,968 you can ask any question and hopefully the person created it will answer it 102 00:05:03,968 --> 00:05:07,316 and if you find the question you know the answer too 103 00:05:07,316 --> 00:05:12,441 then I answer it like... Hey! Yeah! You can! 104 00:05:12,441 --> 00:05:14,318 here's where I did it. 105 00:05:14,318 --> 00:05:17,941 you can answer with that to link to another scratchpad 106 00:05:17,941 --> 00:05:20,700 rewriting to answer their question 107 00:05:20,700 --> 00:05:23,972 now if you just want to say how awesome it is 108 00:05:23,972 --> 00:05:25,315 or give a tip 109 00:05:25,315 --> 00:05:27,264 you can go to the tips and feedback panel 110 00:05:27,894 --> 00:05:33,899 say like "WoW! This is the coolest thing I have seen today!" 111 00:05:34,806 --> 00:05:36,489 and then the creator will feel really good 112 00:05:36,489 --> 00:05:39,027 because they got these compliment from you 113 00:05:39,027 --> 00:05:42,132 and that's one of the awesome thing about programming is that 114 00:05:42,132 --> 00:05:44,072 you can put all these thing in the world 115 00:05:44,072 --> 00:05:45,864 and you never know who is gonna to find it 116 00:05:45,864 --> 00:05:48,278 and who's day you are gonna to make better 117 00:05:48,278 --> 00:05:51,371 because they found these really cool creative thing that you come up with 118 00:05:52,755 --> 00:05:55,900 so we want this to be a community of people learning from each other 119 00:05:55,900 --> 00:05:57,532 and sharing their creation with each other 120 00:05:57,532 --> 00:06:01,018 because this is a big part of what we love about programming 121 00:06:01,018 --> 00:06:02,731 it will definitely harder first 122 00:06:02,731 --> 00:06:05,800 and your first program so start off small 123 00:06:05,800 --> 00:06:06,632 but as you keep going 124 00:06:06,632 --> 00:06:08,316 you will be able to do more and more 125 00:06:08,316 --> 00:06:10,528 until one day you realized that 126 00:06:10,528 --> 00:06:14,528 Wow! you can do almost anything in programming!