WEBVTT
X-TIMESTAMP-MAP=MPEGTS:900000,LOCAL:00:00:00.000

00:00:05.210 --> 00:00:09.410
What is code before we can answer that. We should answer an

00:00:09.440 --> 00:00:13.910
easier question. What's a computer. A computer is a clock with

00:00:13.910 --> 00:00:17.780
benefits. They all work the same during second grade math. One

00:00:17.780 --> 00:00:22.470
step at a time. Take a signal and put it in box one. Take

00:00:22.490 --> 00:00:26.600
another signal. Put it in the box to combine the signals and

00:00:26.600 --> 00:00:31.100
Box 1 and maybe add them together subtract you using a pen and

00:00:31.100 --> 00:00:35.060
paper can do anything. A computer could do. You just can't do

00:00:35.060 --> 00:00:39.830
those things. Billions of times per second that speed makes it

00:00:39.830 --> 00:00:44.390
possible to pull multiple sleight of hand all at once. CARD

00:00:44.390 --> 00:00:49.970
TRICKS ON TOP OF CARD TRICKS. Code is a means of harnessing the

00:00:49.970 --> 00:00:54.020
computer's power. Setting up all those card tricks. It all

00:00:54.020 --> 00:00:57.650
starts with words and characters entered into a computer by a

00:00:57.650 --> 00:01:00.710
human using a keyboard. They're writing in a programming

00:01:00.710 --> 00:01:04.460
language. A programming language is really just a set of rules

00:01:04.459 --> 00:01:08.270
. It tells you which words you can use to tell the computer what

00:01:08.270 --> 00:01:12.890
you needed to do. Take a look at this code 10 javascript. It's

00:01:12.890 --> 00:01:15.950
a very common language that turns a web page from a document

00:01:16.180 --> 00:01:20.180
that looks like nonsense into software. Many web pages. Amazon

00:01:20.180 --> 00:01:24.350
for instance are packed with software code like this. This code

00:01:24.380 --> 00:01:27.380
all through here code that makes the page into something dynamic

00:01:27.380 --> 00:01:30.410
. Now javascript is just one of thousands of languages that

00:01:30.410 --> 00:01:33.860
ultimately all do the same thing. They make the computer go .

00:01:34.310 --> 00:01:38.050
So why does it matter which you choose for the same reason that

00:01:38.060 --> 00:01:41.330
you don't take a bicycle to buy a fridge or get a physical from

00:01:41.330 --> 00:01:44.510
a neurosurgeon. Some languages just match up better with

00:01:44.510 --> 00:01:47.750
certain problems. C++ is something you might use if you were

00:01:47.750 --> 00:01:52.130
building a game for the PlayStation or x box P HP is code for

00:01:52.130 --> 00:01:55.130
creating millions of web pages they use it to Etsy and Facebook

00:01:55.130 --> 00:01:58.130
. Python's a great general purpose language. It's used by

00:01:58.130 --> 00:02:02.540
Instagram and a lot of scientists. So no a computer is a clock

00:02:02.540 --> 00:02:06.590
with benefits and we know you can use a programming language to

00:02:06.590 --> 00:02:09.410
make software. But how does that actually happen. Well the

00:02:09.410 --> 00:02:12.380
computer takes the programming code and reads through it

00:02:12.530 --> 00:02:16.010
character by character tosses out all the spaces tabs comments

00:02:16.010 --> 00:02:19.160
and other stuff it leaves behind what a computer scientists

00:02:19.160 --> 00:02:22.940
might call tokens. Once it has tokens the computer does the

00:02:22.940 --> 00:02:26.660
digital equivalent of furrowing its brow and it reorganizes

00:02:26.660 --> 00:02:30.620
things as necessary in a process known as compilation. Making

00:02:30.620 --> 00:02:34.460
the code more and more primitive until finally it's translated

00:02:34.460 --> 00:02:38.420
into a set of digital grunts called machine language. That's

00:02:38.420 --> 00:02:42.080
the sort of thing a computer can execute and those grunts have

00:02:42.080 --> 00:02:44.990
become just part of the furniture of your life. It's software

00:02:44.990 --> 00:02:48.140
that switches channels on your TV. How you can get money out of

00:02:48.140 --> 00:02:51.620
an A.T.M. town elevator takes you have five flights of stairs .

00:02:51.620 --> 00:02:54.740
You write code and the computer turns it into software and that

00:02:54.740 --> 00:02:58.850
can run as many times as you need omnipresent familiar invisible

00:02:58.850 --> 00:03:00.770
. That is the story of code .
