1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
1
00:00:00,000 --> 00:00:39,630

2
00:00:39,630 --> 00:00:41,880
DAVID J. Malan: Tout dwa,
kidonk sa a isit la se bra a Myo

3
00:00:41,880 --> 00:00:44,450
bann, yon koup la ki nou
gen pou CS50 pwojè final la.

4
00:00:44,450 --> 00:00:47,533
Ak sa ki te yon demonstrasyon nou atant
ou leve davans ki kote esansyèlman

5
00:00:47,533 --> 00:00:51,120
sa a bra san patipri sere bann moute isit la
koute mouvman miskilè ou

6
00:00:51,120 --> 00:00:54,280
ke yo Lè sa a, trase nan lojisyèl
nan konpitè pòtatif Colton a sou isit la ki

7
00:00:54,280 --> 00:00:57,230
te gen iTunes epi ki
chante deja atant yo.

8
00:00:57,230 --> 00:01:00,270
Olye de sa pase m 'demoing sa a,
Colton te gen nan laboratwa a

9
00:01:00,270 --> 00:01:04,129
byen klè tout semèn ap resevwa yon demonstrasyon
pare pou yon sèl volontè brav.

10
00:01:04,129 --> 00:01:07,430
Si yon moun ta renmen vini
sou up-- wè men ou premye.

11
00:01:07,430 --> 00:01:09,540
Vini non sou yo.

12
00:01:09,540 --> 00:01:12,530
>> Tout dwa.

13
00:01:12,530 --> 00:01:13,886
Ak sa ki non ou?

14
00:01:13,886 --> 00:01:14,800
>> ODYANS: Uh, Maria.

15
00:01:14,800 --> 00:01:16,550
>> DAVID J. Malan: Maria, bèl yo wè ou.

16
00:01:16,550 --> 00:01:17,310
Vini non sou sou isit la.

17
00:01:17,310 --> 00:01:19,550
Kite m 'entwodui ou nan Colton.

18
00:01:19,550 --> 00:01:21,290
Colton, sa a se Maria.

19
00:01:21,290 --> 00:01:23,050
>> COLTON: Hi, bèl al kontre ou.

20
00:01:23,050 --> 00:01:24,330
>> DAVID J. Malan: Tout
dwa, se konsa etap yon sèl, nou ap

21
00:01:24,330 --> 00:01:26,204
ale nan gen ou mete
sa a sou avanbra ou

22
00:01:26,204 --> 00:01:29,280
se konsa ke li la trè
sere moute tou pre manch rad koud bra ou.

23
00:01:29,280 --> 00:01:31,940
Ak pandan se tan, se pou yo gen
mete yo sou Google Glass nou an

24
00:01:31,940 --> 00:01:33,720
epi nou pral melanje teknoloji jodi a.

25
00:01:33,720 --> 00:01:36,340
>> COLTON: Premye nou pral oblije
zen sa a nan bagay sa yo.

26
00:01:36,340 --> 00:01:37,170
>> DAVID J. Malan: OK.

27
00:01:37,170 --> 00:01:39,795
Aktyèlman, kite a mete bra ou kòm
fèmen nan kab sa a ke posib

28
00:01:39,795 --> 00:01:41,160
pou nou ka premye sync fè l '.

29
00:01:41,160 --> 00:01:42,740
>> COLTON: Se pou nou fè sa.

30
00:01:42,740 --> 00:01:46,500
>> DAVID J. Malan: Epi pandan se tan, se konsa
ke tout moun ka jwenn yon ti koutje sou pi pre,

31
00:01:46,500 --> 00:01:50,290
nou pral voye kamera Andre a
moute sou ekran an la.

32
00:01:50,290 --> 00:01:54,460
Se konsa, nou gen yon kab USB sa a, se
ke yo te konekte nan Brasher Maria la.

33
00:01:54,460 --> 00:02:00,230
Ak kite m 'voye ekran Colton a
moute sou pwojektè kap vini an.

34
00:02:00,230 --> 00:02:06,000
>> Se konsa, Colton se enskri aparèy la
kounye a kòm yon Myo konekte nan kab sa a.

35
00:02:06,000 --> 00:02:08,060
Koulye a, kisa Maria a
pral fè ti tan

36
00:02:08,060 --> 00:02:10,120
se aktyèlman mache nan
etap sa yo kalibrasyon

37
00:02:10,120 --> 00:02:12,830
epi anseye lojisyèl an
ki jan misk li reponn

38
00:02:12,830 --> 00:02:16,070
lè li fè sèten pre-defini
jès ki lojisyèl an konprann.

39
00:02:16,070 --> 00:02:17,910
Si w ta renmen yo ale nan
devan ekran an.

40
00:02:17,910 --> 00:02:26,840

41
00:02:26,840 --> 00:02:30,090
OK, kontinye eseye.

42
00:02:30,090 --> 00:02:31,860
>> COLTON: Ale tankou sa a.

43
00:02:31,860 --> 00:02:32,970
Li te tankou sa.

44
00:02:32,970 --> 00:02:34,563
Apre sa, tout wout la nan bò dwat la.

45
00:02:34,563 --> 00:02:35,922
Ale tounen.

46
00:02:35,922 --> 00:02:37,740
>> DAVID J. Malan: OK.

47
00:02:37,740 --> 00:02:38,960
Diferan pèspektiv.

48
00:02:38,960 --> 00:02:39,620
Li pa ou.

49
00:02:39,620 --> 00:02:40,350
Li nan nou.

50
00:02:40,350 --> 00:02:41,749
>> MARIA: OK.

51
00:02:41,749 --> 00:02:42,540
DAVID J. Malan: No

52
00:02:42,540 --> 00:02:46,720

53
00:02:46,720 --> 00:02:51,540
Se pou yo avanse pou li moute pi wo se konsa li a
pi pre koud ou, oswa menm pi sere.

54
00:02:51,540 --> 00:02:52,680
Tout dwa.

55
00:02:52,680 --> 00:02:53,270
>> Isit la nou ale.

56
00:02:53,270 --> 00:02:56,780
Sa a ta dwe yon bon moman pou CS52X.

57
00:02:56,780 --> 00:02:57,670
Gen nou ale.

58
00:02:57,670 --> 00:02:58,760
>> Trè bèl.

59
00:02:58,760 --> 00:03:01,170
OK.

60
00:03:01,170 --> 00:03:02,790
Thumb pinki.

61
00:03:02,790 --> 00:03:03,380
>> Trè bèl.

62
00:03:03,380 --> 00:03:05,140
Gaye dwèt ou.

63
00:03:05,140 --> 00:03:06,240
Bon.

64
00:03:06,240 --> 00:03:06,910
Balanse dwat.

65
00:03:06,910 --> 00:03:15,052

66
00:03:15,052 --> 00:03:17,010
Li nan kiryozite ki montre
ou ak hand-- gòch la

67
00:03:17,010 --> 00:03:19,665
>> COLTON: Yeah, sa a, se Wierd.

68
00:03:19,665 --> 00:03:21,790
DAVID J. Malan: Vag
dwat la yo epi li deplase pi devan.

69
00:03:21,790 --> 00:03:22,998
Vit pou pi devan pou sote oswa pwochen.

70
00:03:22,998 --> 00:03:25,020
Sa a OK dwa Vag.

71
00:03:25,020 --> 00:03:26,650
>> MARIA: Mwen don't-- tann.

72
00:03:26,650 --> 00:03:28,430
>> DAVID J. Malan: Bezwen kèk èd?

73
00:03:28,430 --> 00:03:30,027
>> COLTON: Se konsa, w ap ale tankou sa a.

74
00:03:30,027 --> 00:03:31,860
MARIA: Li vire nan
lòt bagay, menm si.

75
00:03:31,860 --> 00:03:32,390
COLTON: Li se.

76
00:03:32,390 --> 00:03:34,250
DAVID J. Malan: Yeah Mwen pa konnen
poukisa li a ki montre ou yon leftie.

77
00:03:34,250 --> 00:03:36,458
COLTON: Poukisa ou pa try--
jis eseye ale tankou sa a.

78
00:03:36,458 --> 00:03:38,910

79
00:03:38,910 --> 00:03:40,090
>> DAVID J. Malan: Se pa?

80
00:03:40,090 --> 00:03:42,580
Petèt rive jwenn bra ou
soti yon ti kras pla

81
00:03:42,580 --> 00:03:46,070
, epi fè li plis brid sou kou tankou sa a.

82
00:03:46,070 --> 00:03:48,176
Yeah, OK, vini sou.

83
00:03:48,176 --> 00:03:49,670
>> MARIA: Mwen regrèt.

84
00:03:49,670 --> 00:03:51,170
DAVID J. Malan: Li pa fòt ou.

85
00:03:51,170 --> 00:03:53,018
COLTON: Li nan amann.

86
00:03:53,018 --> 00:03:55,430
DAVID J. Malan: Tout dwa.

87
00:03:55,430 --> 00:03:56,220
Well--

88
00:03:56,220 --> 00:03:57,620
>> MARIA: Eske nou ta dwe sote sa a, lè sa a?

89
00:03:57,620 --> 00:03:59,620
DAVID J. Malan: Wi, se pou yo
kite ou nan zen an.

90
00:03:59,620 --> 00:04:03,130
Se konsa, si nenpòt moun ki ta renmen fè yon
pwojè final lè l sèvi avèk sa a kwen koupe

91
00:04:03,130 --> 00:04:07,707
pyès ki nan konpitè, reyalize li ta ka jis
pran yon ti kras ap resevwa itilize yo.

92
00:04:07,707 --> 00:04:10,290
Epi this-- reyalite a se sa a
se aktyèlman trè senyen kwen.

93
00:04:10,290 --> 00:04:12,040
>> Sa a se sa ki rele
pou twous lan pwomotè, ki

94
00:04:12,040 --> 00:04:14,956
ki te vle di yo dwe esansyèlman se yon pre-lage
se konsa ke gen moun ki ka fè egzakteman

95
00:04:14,956 --> 00:04:18,690
this-- goumen ak li, figi
konnen ki jan kò moun nan travay

96
00:04:18,690 --> 00:04:19,980
ak teknoloji a.

97
00:04:19,980 --> 00:04:21,750
Se konsa, si ou vle
apre sa, apre yo fin konferans,

98
00:04:21,750 --> 00:04:23,750
nou ka kite ou ale epi pou
pran yon lòt koud nan li.

99
00:04:23,750 --> 00:04:26,970
Men, otreman, yon wonn nan aplodisman, si
nou te kapab, pou Maria pou vini sou yo.

100
00:04:26,970 --> 00:04:28,770
>> MARIA: Mèsi poutèt ou.

101
00:04:28,770 --> 00:04:30,390
>> DAVID J. Malan: Mèsi poutèt ou.

102
00:04:30,390 --> 00:04:34,945
Nou pral kwoke sou sa a, men nou pral bay
you-- ki jan sou yon boul estrès isit la?

103
00:04:34,945 --> 00:04:38,620
Oh, and-- if-- yeah, mèsi.

104
00:04:38,620 --> 00:04:39,715
Tout dwa.

105
00:04:39,715 --> 00:04:45,750
Se konsa, pou kirye a, si ou te
abitye avèk chwa a son

106
00:04:45,750 --> 00:04:47,670
ke nou te fè gen
pi bonè, yon televizyon etonan

107
00:04:47,670 --> 00:04:50,210
yo fè montre ke ou ta dwe absoliman
gen repa egzajere-l ap gade sou Netflix

108
00:04:50,210 --> 00:04:51,110
se yon sèl sa a isit la.

109
00:04:51,110 --> 00:04:54,472
>> Oratè 1: Ladies ak Mesye,
yon majisyen ki te rele Joz.

110
00:04:54,472 --> 00:05:04,710

111
00:05:04,710 --> 00:05:08,050
>> DAVID J. Malan: Ak aparamman, li nan
yon bagay nan tèks m 'pandan konferans kounye a.

112
00:05:08,050 --> 00:05:11,190
Mwen te di yo ke Maria
te gen yon anivèsè nesans yè.

113
00:05:11,190 --> 00:05:14,095
Se konsa, kè kontan anivèsè nesans soti nan
CS50 Maria kòm byen.

114
00:05:14,095 --> 00:05:18,720

115
00:05:18,720 --> 00:05:22,090
>> Se konsa, ou ka te li nan mwa ki sot pase
ki Mesye sa a isit la, Steve

116
00:05:22,090 --> 00:05:25,260
Ballmer, ki moun ki te aktyèlman
klas nan 1977 nan kolèj la,

117
00:05:25,260 --> 00:05:27,170
dènyèman pran retrèt pou Microsoft.

118
00:05:27,170 --> 00:05:29,620
Li te gen yon bakaloreya isit la,
Lè sa a, ane yon koup pita

119
00:05:29,620 --> 00:05:31,910
te jwenn tèt li nan
Stanford Business School

120
00:05:31,910 --> 00:05:34,160
lè li te resevwa yon telefòn
rele nan men yon zanmi nan ki moun li

121
00:05:34,160 --> 00:05:36,516
te viv desann sal la
nan men l 'isit la nan Harvard.

122
00:05:36,516 --> 00:05:38,640
Non ke zanmi a te Bill
Gates, ak nan moman an,

123
00:05:38,640 --> 00:05:42,700
li te ap eseye rekrite Steve yo dwe
moun nan biznis premye, reyèlman,

124
00:05:42,700 --> 00:05:45,720
nan yon ti konpayi non Microsoft.

125
00:05:45,720 --> 00:05:48,960
>> Yon kout istwa long, Steve
te finalman te genyen sou,

126
00:05:48,960 --> 00:05:52,130
Joined Microsoft lè yo
te gen jis 30 anplwaye yo.

127
00:05:52,130 --> 00:05:54,300
E pa lè a li
pran retrèt byen dènyèman,

128
00:05:54,300 --> 00:05:58,100
konpayi an te gen 100,000 anplwaye
sou ane ki sot pase yo kèk.

129
00:05:58,100 --> 00:06:01,171
Se konsa, yon sit entènèt li te ye tankou Wout pou
prepare sa a peye lajan taks sou videyo

130
00:06:01,171 --> 00:06:02,920
ke nou te panse nou ta
pataje ki ba ou

131
00:06:02,920 --> 00:06:08,380
yon sans de jis ki jan anpil enèji Steve
pote nan nenpòt ki prezantasyon li bay.

132
00:06:08,380 --> 00:06:11,884

133
00:06:11,884 --> 00:06:12,550
[Lèktur VIDEO]

134
00:06:12,550 --> 00:06:16,220
-Microsoft A tankou yon timoun katriyèm.

135
00:06:16,220 --> 00:06:18,260
Timoun fè kite kay la.

136
00:06:18,260 --> 00:06:21,875
Nan ka sa a, mwen devine
Mwen kite kay la.

137
00:06:21,875 --> 00:06:23,270
Hey Bill, whazzap?

138
00:06:23,270 --> 00:06:24,200
>> -Wazzap?

139
00:06:24,200 --> 00:06:25,320
>> -Hey, Wazzap?

140
00:06:25,320 --> 00:06:28,590
Nou te ap bay yon
menmen opòtinite.

141
00:06:28,590 --> 00:06:30,210
Ak Bill te ban nou opòtinite sa a.

142
00:06:30,210 --> 00:06:35,520

143
00:06:35,520 --> 00:06:36,770
Mwen vle Bill mèsi pou sa.

144
00:06:36,770 --> 00:06:39,630
Mwen vle nou tou.

145
00:06:39,630 --> 00:06:42,500
Mach la nan inovasyon
a pa pral ralanti.

146
00:06:42,500 --> 00:06:45,140
>> Li nan ale nan jwenn pi vit ak pi vit.

147
00:06:45,140 --> 00:06:50,165
Gen ta kapab yon konpetitè kèk
ke yo malerezman elimine!

148
00:06:50,165 --> 00:06:54,337

149
00:06:54,337 --> 00:06:59,564
>> Mwen renmen konpayi sa a.

150
00:06:59,564 --> 00:07:00,064
Wi!

151
00:07:00,064 --> 00:07:03,452

152
00:07:03,452 --> 00:07:08,250
Mwen se yon PC, e mwen renmen konpayi sa a!

153
00:07:08,250 --> 00:07:13,090
>> Devlopè, devlopè, devlopè,
devlopè, devlopè, devlopè,

154
00:07:13,090 --> 00:07:14,560
devlopè, devlopè.

155
00:07:14,560 --> 00:07:17,500

156
00:07:17,500 --> 00:07:18,970
Wi!

157
00:07:18,970 --> 00:07:19,950
Devlopè Web!

158
00:07:19,950 --> 00:07:21,420
>> Devlopè Web!

159
00:07:21,420 --> 00:07:22,890
Devlopè Web!

160
00:07:22,890 --> 00:07:25,830

161
00:07:25,830 --> 00:07:28,770
Koute sa lòt bagay ou
jwenn nan pa gen chaj siplemantè!

162
00:07:28,770 --> 00:07:31,960
>> Pouvwa egzekitif la MS-DOS, yon randevou
calender, yon pil kat, yon pad nòt,

163
00:07:31,960 --> 00:07:33,750
yon revèy, yon panèl kontwòl.

164
00:07:33,750 --> 00:07:35,461
Epi, ou ka kwè ke li?

165
00:07:35,461 --> 00:07:35,960
Reversie!

166
00:07:35,960 --> 00:07:37,270
>> Boule yo CD!

167
00:07:37,270 --> 00:07:38,660
Afiche yo MSN!

168
00:07:38,660 --> 00:07:40,422
Ou voye yo bay zanmi!

169
00:07:40,422 --> 00:07:41,790
>> Tout ak yon sèl klike sou!

170
00:07:41,790 --> 00:07:48,670
Youn Microsoft, youn estrateji, yon sèl team--
konsantre, disipline, pwofesyonèl,

171
00:07:48,670 --> 00:07:50,610
ak ekspè nan tout sa nou fè.

172
00:07:50,610 --> 00:07:52,670
Kite m 'sèvi ak yon liy ki soti nan yon fim fin vye granmoun.

173
00:07:52,670 --> 00:07:54,810
>> Relasyon yo tankou reken yo.

174
00:07:54,810 --> 00:07:57,480
Yo avanse pou pi devan oswa yo mouri.

175
00:07:57,480 --> 00:08:01,470
Mwen aktyèlman panse teknoloji
konpayi yo se menm bagay la.

176
00:08:01,470 --> 00:08:04,801
>> [Lèktur videyo END]

177
00:08:04,801 --> 00:08:08,050
DAVID J. Malan: Se konsa, nou yo, se pou kontan
anonse ke Steve pral rantre nan nou

178
00:08:08,050 --> 00:08:13,320
isit la nan CS50 Mèkredi pwochen nan
plas la abityèl ak tan isit la.

179
00:08:13,320 --> 00:08:14,750
Espas ap gen chans pou dwe limite.

180
00:08:14,750 --> 00:08:19,650
Se konsa, rantre nan nou nan moun, tanpri
tèt jodi a oswa yon ti tan apre sa

181
00:08:19,650 --> 00:08:22,600
cs50.harvard.edu/register.

182
00:08:22,600 --> 00:08:25,780
>> Apre sa, nou pral swiv moute pa
Madi konfime tach.

183
00:08:25,780 --> 00:08:29,900
Gade pou pi devan pou ke pwochen
Mèkredi pandan konferans nan CS50.

184
00:08:29,900 --> 00:08:33,706
Koulye a, nan lòt nouvèl, mwen te rive
vini nan tout sa a nan Crimson la jis

185
00:08:33,706 --> 00:08:34,289
lòt jou a.

186
00:08:34,289 --> 00:08:37,370
>> Li sanble ke youn nan anplwaye CS50 a
ak omwen youn nan elèv CS50 nan

187
00:08:37,370 --> 00:08:40,299
se kounye a kouri pou UC
prezidan ak vis-prezidan,

188
00:08:40,299 --> 00:08:42,950
ki te fè m 'tounen
nan jou pwòp mwen tounen

189
00:08:42,950 --> 00:08:45,920
lè m 'pèdi eleksyon an UC miserable.

190
00:08:45,920 --> 00:08:48,210
Men, pawa an ajan
nan ki se mwen toujou

191
00:08:48,210 --> 00:08:50,604
rakonte istwa a se ke
youn nan mwen an se asire w ke

192
00:08:50,604 --> 00:08:52,770
anpil rezon Mwen pèdi nan
eleksyon se te yon mank konplè

193
00:08:52,770 --> 00:08:54,103
nan yon talan pou pale an piblik.

194
00:08:54,103 --> 00:08:56,950
Se konsa, byen onètman, li
te kondwi m ', ke eksperyans

195
00:08:56,950 --> 00:09:02,235
Mwen panse ke ane jinyò m 'yo, yo aktyèlman siyen
moute pou Harvard Sosyete Odinatè, ki

196
00:09:02,235 --> 00:09:04,610
se gwoup la sou lakou lekòl la ki
kenbe divès kalite chita pale teknik

197
00:09:04,610 --> 00:09:05,318
ak lòt bagay.

198
00:09:05,318 --> 00:09:08,117
Apre sa, mwen te pran plis pase ansèyman yo
seminè ak Se poutèt sa

199
00:09:08,117 --> 00:09:09,950
te gen yon opòtinite, yon
opòtinite bèl bagay,

200
00:09:09,950 --> 00:09:12,620
yo kòmanse ap travay sou egzakteman sa a.

201
00:09:12,620 --> 00:09:15,000
Men, tou, mwen te gen yon opòtinite
pandan eksperyans sa a

202
00:09:15,000 --> 00:09:16,930
yo anseye tèt mwen tout HTML a plis ankò.

203
00:09:16,930 --> 00:09:21,080
Se konsa, mwen ranvwaye yè swa pa
kap nan sit entènèt la HTML ki baze

204
00:09:21,080 --> 00:09:28,066
Mwen te fè nan tankou 1997, '98, pou m '
kanpay ki sanble tankou sa a isit la.

205
00:09:28,066 --> 00:09:29,920
Mwen konnen.

206
00:09:29,920 --> 00:09:33,340
>> Because-- ak nan kou, avi
sa a desizyon konsepsyon etonan nan 1998

207
00:09:33,340 --> 00:09:33,850
oswa etajèr.

208
00:09:33,850 --> 00:09:36,475
Premye bagay ou vle itilizatè
moun fè gwo vizite sit entènèt ou

209
00:09:36,475 --> 00:09:39,860
se yo gen klike yon lòt lyen jis
a antre nan sit entènèt ou isit la ak mwàn a

210
00:09:39,860 --> 00:09:43,940
dèyè tankou yon rido kache kote
aparamman platfòm kanpay mwen te ye a.

211
00:09:43,940 --> 00:09:46,330
Lè sa a se tout sa ou pral jwenn
jodi a se jis yon D.

212
00:09:46,330 --> 00:09:49,500
Men, mwen te lekti atravè, tankou,
postè kanpay mwen yè swa

213
00:09:49,500 --> 00:09:50,490
ak platfòm m 'yo.

214
00:09:50,490 --> 00:09:52,960
>> Apre sa, mwen te tèlman fache nan moman an.

215
00:09:52,960 --> 00:09:55,380
Platfòm mwen was-- li te enteresan.

216
00:09:55,380 --> 00:09:57,730
Se konsa, mwen te kalme depi lè sa a.

217
00:09:57,730 --> 00:10:03,550
Men, yon jou, mwen pral kouri ankò, li
èspere ke pi bon moman sa a.

218
00:10:03,550 --> 00:10:07,265
>> Se konsa, HTML, ki lang nan ki mwen te fè
ki in-- ou pral byento fè more-- pi

219
00:10:07,265 --> 00:10:09,140
se yon bagay nou ve yo te
ap pale de nan byen ta nan

220
00:10:09,140 --> 00:10:12,460
ak lajman pran pou yo akòde kounye a
ke nou te te deplase sou lòt lang.

221
00:10:12,460 --> 00:10:15,650
Men, kite a pran yon poz sèlman pou moman yon ak
mete kèk nan bagay sa yo nan yon kontèks.

222
00:10:15,650 --> 00:10:18,040
Se konsa, nan yon fraz, ki sa ki HTML?

223
00:10:18,040 --> 00:10:19,370
>> Oswa, sa ki itilize pou?

224
00:10:19,370 --> 00:10:20,208
Nenpòt moun ki?

225
00:10:20,208 --> 00:10:20,708
Wi.

226
00:10:20,708 --> 00:10:22,002
>> ODYANS: markeup pou sit entènèt.

227
00:10:22,002 --> 00:10:23,460
DAVID J. Malan: markeup pou sit entènèt.

228
00:10:23,460 --> 00:10:27,100
Se konsa, li yon lang markeup ki
pèmèt ou estrikti yon paj entènèt.

229
00:10:27,100 --> 00:10:30,040
Header ap moute isit la, tit
ale isit la, kò ale isit la.

230
00:10:30,040 --> 00:10:33,280
Sa a se Tipografi, sa a se
italics-- ki sòt de detay.

231
00:10:33,280 --> 00:10:33,830
>> OK, bon.

232
00:10:33,830 --> 00:10:37,620
Se konsa, CSS pèmèt you-- ak mwen
te pran kèk libète gen

233
00:10:37,620 --> 00:10:40,990
ak fonse-fè fas a ak italik paske
ki nan pi bon aplike avèk sa a.

234
00:10:40,990 --> 00:10:42,096
CSS is-- ki sa?

235
00:10:42,096 --> 00:10:42,845
Di nan yon fraz.

236
00:10:42,845 --> 00:10:46,000

237
00:10:46,000 --> 00:10:46,720
Nenpòt moun ki nan tout.

238
00:10:46,720 --> 00:10:46,870
Yeah.

239
00:10:46,870 --> 00:10:49,286
>> ODYANS: anbelisman ak
bagay, tankou ki jan nan konsepsyon li.

240
00:10:49,286 --> 00:10:51,769

241
00:10:51,769 --> 00:10:52,810
DAVID J. Malan: OK, bon.

242
00:10:52,810 --> 00:10:55,420
Anbelisman ki pèmèt ou
nan konsepsyon li oswa stilize li

243
00:10:55,420 --> 00:10:59,540
ak bagay sa yo tankou Tipografi ak
italik ak koulè epi tou plis amann

244
00:10:59,540 --> 00:11:01,330
grenn fen pwezante nan eleman.

245
00:11:01,330 --> 00:11:04,520
Li sòt de pèmèt ou pran bagay sa yo
dènye mil se konsa ke si, pou egzanp,

246
00:11:04,520 --> 00:11:08,130
nan pset7, ou ta ka remake gen sou ou
paj pòtfolyo si w ap nan pwen sa a

247
00:11:08,130 --> 00:11:12,270
deja ke yon tab default ke ou
fè yo montre itilizatè a HOLDINGS stock

248
00:11:12,270 --> 00:11:15,740
ak lajan kach pwobableman sanble trè efreyan
pa default ki pa gen okenn espas blan.

249
00:11:15,740 --> 00:11:18,420
Kalite Tout la nan anpile
ansanm nan ranje ak kolòn.

250
00:11:18,420 --> 00:11:20,662
>> Oke, ak yon ti jan nan
CSS, jan ou ka reyalize,

251
00:11:20,662 --> 00:11:23,870
ou ka aktyèlman ajiste ki, epi fè li
yon bagay pi plis yo konnen yo ak anpil

252
00:11:23,870 --> 00:11:24,870
bèl pase fè yon gade nan.

253
00:11:24,870 --> 00:11:27,730
Se konsa, CSS se sou la
stilizasyon nan sit entènèt.

254
00:11:27,730 --> 00:11:31,970
Men, lè sa a nou prezante ankò yon lòt
lang, PHP, ki pèmèt nou fè ki sa?

255
00:11:31,970 --> 00:11:36,400

256
00:11:36,400 --> 00:11:37,590
>> Se pou nou jis fè sa?

257
00:11:37,590 --> 00:11:38,177
Nenpòt ki moun.

258
00:11:38,177 --> 00:11:40,010
Te rive nan antrepriz pi lwen pase
premye koup ranje yo.

259
00:11:40,010 --> 00:11:40,260
Yeah.

260
00:11:40,260 --> 00:11:41,719
>> ODYANS: Jenere kontni dinamik.

261
00:11:41,719 --> 00:11:42,718
DAVID J. Malan: pafè.

262
00:11:42,718 --> 00:11:43,850
Jenere kontni dinamik.

263
00:11:43,850 --> 00:11:45,808
Epi ou ka fè sa nan
nenpòt ki kantite lang.

264
00:11:45,808 --> 00:11:50,120
Nou rive yo sèvi ak PHP paske li nan
nan pati se konsa menm jan ak C sentaks.

265
00:11:50,120 --> 00:11:52,000
>> Men, PHP fè egzakteman sa.

266
00:11:52,000 --> 00:11:54,620
Li pèmèt ou dynamique jenere pwodiksyon.

267
00:11:54,620 --> 00:11:57,890
Se konsa, kèk nan ki pwodiksyon ta ka
HTML, kòm nou te tipikman te fè.

268
00:11:57,890 --> 00:12:00,160
Ak li la tou, paske li nan
yon lang programmation, se

269
00:12:00,160 --> 00:12:03,240
mekanis a atravè ki
nou ka pale ak baz done.

270
00:12:03,240 --> 00:12:05,730
>> Apre sa, nou ka fè demann
lòt serveurs tankou Yahoos

271
00:12:05,730 --> 00:12:08,660
ak programatik fè anyen
reyèlman ke ou ta ka otreman

272
00:12:08,660 --> 00:12:10,400
vle fòse yon òdinatè fè.

273
00:12:10,400 --> 00:12:13,580
Se konsa, PHP pèmèt nou kòmanse
dynamique sorti kontni.

274
00:12:13,580 --> 00:12:16,900
Se konsa, pa lojik sa a, mwen pa t 'gen
yon sit entènèt dinamik tounen nan 1998.

275
00:12:16,900 --> 00:12:18,460
>> Li te jis yon paj entènèt estatik.

276
00:12:18,460 --> 00:12:22,250
Kontni mwen te dwe chanje pa
manyèlman ak jdi oswa kèk ekivalan.

277
00:12:22,250 --> 00:12:25,290
Men, PHP se sa nou itilize oswa
te kapab itilize, olye,

278
00:12:25,290 --> 00:12:27,260
pou yon bagay tankou nan
IMS Frosh sit entènèt, ki

279
00:12:27,260 --> 00:12:31,160
te sipoze pran anrejistreman ak
jere yon lis bagay ki users--

280
00:12:31,160 --> 00:12:33,550
yo aktyèlman chanje sou
tan, menm si nou rive

281
00:12:33,550 --> 00:12:35,990
yo sèvi ak pèrl, yon diferan
lang nan moman an.

282
00:12:35,990 --> 00:12:40,350
>> Lè sa a, anfen, nou prezante
SQL-- estriktire rekèt Lang.

283
00:12:40,350 --> 00:12:43,845
Se konsa, yon lòt lang ankò
ki nan itilize pou ki sa?

284
00:12:43,845 --> 00:12:46,660

285
00:12:46,660 --> 00:12:47,639
Yo itilize pou ki sa?

286
00:12:47,639 --> 00:12:49,430
Èske nou ka antrepriz slight--
OK, nou pa ap ale

287
00:12:49,430 --> 00:12:51,263
yo ka resevwa pi pi lwen
pase òkès ​​la isit la.

288
00:12:51,263 --> 00:12:53,432
ODYANS: Li se yon pwotokòl
itilize pou pale ak baz done.

289
00:12:53,432 --> 00:12:55,640
DAVID J. Malan: Yon pwotokòl
itilize pou pale ak baz done.

290
00:12:55,640 --> 00:12:56,181
Kite m 'ajistè.

291
00:12:56,181 --> 00:12:59,280
Se yon lang natirèl yo itilize
pou pale ak seleksyone databases--

292
00:12:59,280 --> 00:13:01,280
ak foure Et supprime
ak dènye ak aktyèlman

293
00:13:01,280 --> 00:13:03,840
menm plis karakteristik ki
nou pa gen menm plonje

294
00:13:03,840 --> 00:13:07,920
nan men ou ka vle explore-- gen
yo eksplore pou, di, yon pwojè final la.

295
00:13:07,920 --> 00:13:09,560
Se konsa, gen pyès sa yo divès kalite.

296
00:13:09,560 --> 00:13:13,100
>> Ak èspere ke pset7, menm si
spesifikasyon li yo se byen long,

297
00:13:13,100 --> 00:13:15,990
li nan fè espre long yo mache ou
a ki jan bagay sa yo kapab tout

298
00:13:15,990 --> 00:13:17,210
dwe tape ansanm.

299
00:13:17,210 --> 00:13:20,300
Koulye a, nan Lendi, nou
prezante ak lang dènye nou an

300
00:13:20,300 --> 00:13:23,430
ke nou pral fòmèlman prezante nan
course-- a se sa ki, JavaScript.

301
00:13:23,430 --> 00:13:25,720
Sa a, tankou PHP, se yon
entèprete lang.

302
00:13:25,720 --> 00:13:28,110
>> Men, yon diferans kle
Mwen pwopoze nan Lendi

303
00:13:28,110 --> 00:13:32,730
se ke Lè nou konsidere ke PHP se egzekite oswa
ke yo te entèprete sou sèvè a, ki

304
00:13:32,730 --> 00:13:35,990
nan ka sa a se aparèy la CS50,
oswa ka gen kèk sit entènèt komèsyal

305
00:13:35,990 --> 00:13:39,370
sèvè sou entènèt la,
JavaScript jeneralman

306
00:13:39,370 --> 00:13:43,650
se yon lang ki kouri bò kliyan
pa sèvè side-- se konsa nan navigatè a.

307
00:13:43,650 --> 00:13:46,970
Sa vle di, jis tankou lè m 'louvri
moute Facebook kòd sous epi li te jwenn tout

308
00:13:46,970 --> 00:13:51,510
nan moun ki dosye js, enplikasyon la te
ki lè ou vizite Facebook oswa pi

309
00:13:51,510 --> 00:13:54,810
sit jou sa yo, ou jwenn
pa sèlman HTML, pa sèlman CSS,

310
00:13:54,810 --> 00:13:59,370
men yon pakèt antye nan JavaScript
Kòd souvan nan fòm lan nan dosye js.

311
00:13:59,370 --> 00:14:03,970
Lè sa a, li nan navigatè pwòp nan ou
Mac oswa PC-- ki ègzekutra ki kòd.

312
00:14:03,970 --> 00:14:05,990
>> Men, navigatè ou a ègzekutra li.

313
00:14:05,990 --> 00:14:08,070
Ou ka panse nan sòt de yon sandboks.

314
00:14:08,070 --> 00:14:12,420
Se konsa, ki JavaScript Kòd pa ta dwe
kapab efase dosye sou òdinatè ou.

315
00:14:12,420 --> 00:14:14,730
Li pa ta dwe kapab
voye Imèl sou non ou.

316
00:14:14,730 --> 00:14:17,760
Kalite navigatè ou nan limit
sa ou kapab fè ak li.

317
00:14:17,760 --> 00:14:20,630
>> Se konsa, nan sans sa, li nan yon ti kras
mwens pwisan, petèt, pase C.

318
00:14:20,630 --> 00:14:24,030
Men, JavaScript kapab, kòm yon
sou kote, dwe itilize sou sèvè a,

319
00:14:24,030 --> 00:14:27,740
menm si nou pral yo gen tandans pa pale
sou li nan ki kontèks.

320
00:14:27,740 --> 00:14:29,740
Se konsa, kounye a kite a mare sa yo ansanm.

321
00:14:29,740 --> 00:14:34,000
Yon semèn plis de sa, nou prezante kèk HTML
sou bò gòch paj wèb la super raz.

322
00:14:34,000 --> 00:14:35,000
>> Jis di alo nan lemonn.

323
00:14:35,000 --> 00:14:38,110
Lè sa a, mwen pwopoze sou la
dwa nou ka kalite vòlè lide

324
00:14:38,110 --> 00:14:41,470
soti nan diskisyon nou an
estrikti done nan C

325
00:14:41,470 --> 00:14:45,270
epi reflechi sou ki jan sa a yerarchize
lang markeup sou bò gòch la

326
00:14:45,270 --> 00:14:49,720
te kapab yo dwe desine oswa aplike nan memwa
kòm yon estrikti pye bwa aktyèl ak nœuds

327
00:14:49,720 --> 00:14:51,400
ak endikasyon ak sa yo kalite detay.

328
00:14:51,400 --> 00:14:53,820
Sou bò dwat la, nou rele
ke yon Dokiman DOM--

329
00:14:53,820 --> 00:14:56,800
Objet Model-- ki se jis
yon fason anpenpan nan li di pye bwa.

330
00:14:56,800 --> 00:14:59,520
>> Koulye a, poukisa sa a itil nan
panse a li nan fason sa a?

331
00:14:59,520 --> 00:15:01,680
Paske kounye a ak
JavaScript, paske nou gen

332
00:15:01,680 --> 00:15:05,810
Kòd ki vin yo jwe nan sa a
anviwònman, HTML aktyèl la sa a, se

333
00:15:05,810 --> 00:15:08,360
te voye nan navigatè a
deja e li gen deja

334
00:15:08,360 --> 00:15:12,690
te chaje nan memwa pa la
navigatè nan yon pye bwa nan la òdinatè w lan

335
00:15:12,690 --> 00:15:18,270
RAM tankou sa a, nou ka sèvi ak JavaScript
yo aktyèlman Traverse oswa mache oswa rechèch

336
00:15:18,270 --> 00:15:21,800
oswa chanje sa Dom pye bwa sepandan nou vle.

337
00:15:21,800 --> 00:15:24,040
Se konsa, an reyalite, si ou panse
sou facebook.com,

338
00:15:24,040 --> 00:15:27,660
si ou itilize karakteristik nan chat, si ou
itilize Gmail ak karakteristik nan Gchat,

339
00:15:27,660 --> 00:15:30,540
anyen ki kote ou gen
mesaj vini ankò e ankò

340
00:15:30,540 --> 00:15:35,880
e ankò, sa yo mesaj yo se pwobableman,
tankou, LI tag, Tags lis atik, petèt.

341
00:15:35,880 --> 00:15:37,940
>> Oswa petèt yo ap jis
div ki kenbe parèt

342
00:15:37,940 --> 00:15:39,770
chak fwa ou jwenn yon mesaj enstantane.

343
00:15:39,770 --> 00:15:42,960
Se konsa, ki jis vle di sa ki
Facebook oswa Google ap fè

344
00:15:42,960 --> 00:15:45,200
se nenpòt ki lè ou jwenn yon
mesaj soti nan sèvè a,

345
00:15:45,200 --> 00:15:48,740
yo ap pwobableman lè l sèvi avèk JavaScript
jis ajoute yon lòt ne

346
00:15:48,740 --> 00:15:52,700
nan sa a yon lòt ne tree-- a sa a
pye bwa ki Lè sa a, vizyèlman jis sanble

347
00:15:52,700 --> 00:15:54,570
tankou yon liy nouvo nan tèks sou ekran an.

348
00:15:54,570 --> 00:15:57,100
Men, yo ap mete
nan estrikti sa a done.

349
00:15:57,100 --> 00:15:59,742
>> Se konsa, nan kou tankou
CS124 ak lòt moun, ou pral

350
00:15:59,742 --> 00:16:02,200
aktyèlman ekri plis Kòd kont
estrikti done tankou sa a.

351
00:16:02,200 --> 00:16:04,310
Men, pou kounye a nan JavaScript,
nou pral jis asime

352
00:16:04,310 --> 00:16:07,920
nou jwenn tout nan sa a fonctionnalités
pou gratis nan lang nan tèt li.

353
00:16:07,920 --> 00:16:09,210
Se konsa, kite pou yo gade nan yon egzanp.

354
00:16:09,210 --> 00:16:13,120
>> Kite m 'louvri moute yon dosye rele form.html.

355
00:16:13,120 --> 00:16:14,601
Li nan super senp.

356
00:16:14,601 --> 00:16:15,600
Li jis sanble tankou sa a.

357
00:16:15,600 --> 00:16:17,860
>> Pa gen CSS, pa gen te panse yo estetik.

358
00:16:17,860 --> 00:16:19,810
Li nan piman fonksyonèl
ak aparamman mwen se

359
00:16:19,810 --> 00:16:24,000
mande pou yon imèl, yon modpas,
modpas ankò, ak Lè sa a yon chèk

360
00:16:24,000 --> 00:16:26,150
dakò pou al nan kèk tèm ak kondisyon.

361
00:16:26,150 --> 00:16:28,740
Ki sa ki kòd la sous pou sa a
sanble se pwobableman yon bagay

362
00:16:28,740 --> 00:16:31,030
ou ta ka devine ak yon
ti kras nan te panse kounye a.

363
00:16:31,030 --> 00:16:32,840
Mwen te gen yon tag fòm isit la.

364
00:16:32,840 --> 00:16:36,190
>> Yon aksyon se aparamman ale nan
ale nan yon dosye rele register.php.

365
00:16:36,190 --> 00:16:37,870
Metòd la, mwen pral sèvi ak se jwenn.

366
00:16:37,870 --> 00:16:40,880
Lè sa a, mwen te gen yon tèks
jaden ki gen non se imel.

367
00:16:40,880 --> 00:16:43,340
>> Mwen te gen yon jaden modpas
ki gen non se modpas.

368
00:16:43,340 --> 00:16:45,420
Mwen te gen yon lòt
modpas jaden ki gen non

369
00:16:45,420 --> 00:16:47,342
se konfimasyon yon ti jan abitrèman.

370
00:16:47,342 --> 00:16:49,690
Li nan jis yon lòt paramèt HTTP.

371
00:16:49,690 --> 00:16:54,430
>> Lè sa a, nou nou pa te itilize sa yo eksepte
depi IMS Frosh yo Demo nan class--

372
00:16:54,430 --> 00:16:56,692
yon bwat chèk ki se
kalite jis egal chèk la.

373
00:16:56,692 --> 00:16:57,900
Apre sa, mwen pral rele ke akò.

374
00:16:57,900 --> 00:17:00,700
Se konsa, mwen te kalite abitrèman men
fasilman yo te rele jaden yo sa yo.

375
00:17:00,700 --> 00:17:03,450
Se konsa, ki kounye a lè fòm sa a vin
soumèt, kite a wè sa ki rive.

376
00:17:03,450 --> 00:17:07,290
Si m 'fè malan@harvard.edu,
Mwen pral fè yon modpas nan wouj.

377
00:17:07,290 --> 00:17:09,530
Mwen pral fè yon modpas nan pa gen anyen.

378
00:17:09,530 --> 00:17:10,910
Se pou yo pa kolabore.

379
00:17:10,910 --> 00:17:12,280
>> Apre sa, mwen pa pral tcheke ti bwat lan.

380
00:17:12,280 --> 00:17:13,940
Kite m 'klike sou Anrejistre.

381
00:17:13,940 --> 00:17:15,420
Epi li di, HM, w ap anrejistre.

382
00:17:15,420 --> 00:17:16,069
Pa vrèman.

383
00:17:16,069 --> 00:17:17,450
>> Men, URL la chanje.

384
00:17:17,450 --> 00:17:22,280
Se konsa, fòm sa a te klèman pèmèt
pou soumèt a register.php.

385
00:17:22,280 --> 00:17:25,160
Men, prezimableman, mwen ta dwe
pwan kèk nan erè sa yo.

386
00:17:25,160 --> 00:17:27,569
Koulye a, nan pset7 ak kèk
nan egzanp konferans nou an,

387
00:17:27,569 --> 00:17:30,130
nou ta jeneralman enprime soti
yon wouj mesaj erè gwo isit la

388
00:17:30,130 --> 00:17:33,760
li di, ki manke non,
oswa ki manke modpas.

389
00:17:33,760 --> 00:17:37,680
Nou te fè sa anvan ak nou te
fè a bò sèvè erè deteksyon.

390
00:17:37,680 --> 00:17:41,580
>> Men, anpil sit jou sa yo
fè kliyan deteksyon erè bò

391
00:17:41,580 --> 00:17:42,810
ki kote adrès URL la pa chanje.

392
00:17:42,810 --> 00:17:44,101
Paj la antye pa rafrechi.

393
00:17:44,101 --> 00:17:46,940
Ou jwenn fidbak enstantane
soti nan navigatè a.

394
00:17:46,940 --> 00:17:48,070
Petèt yon bagay ale wouj.

395
00:17:48,070 --> 00:17:49,190
>> Petèt ou jwenn yon moute pòp.

396
00:17:49,190 --> 00:17:53,240
Men, ou pa gaspiye tan voye
done a sèvè sa a, se enkonplè.

397
00:17:53,240 --> 00:17:56,050
Se konsa, kite a wè ki jan nou ta ka
reyalize ke karakteristik kòm byen.

398
00:17:56,050 --> 00:17:59,660
>> Kite m 'ale nan form1.html,
ki sanble menm bagay la.

399
00:17:59,660 --> 00:18:03,530
Men, si tan sa a mwen fè
malan@harvard.edu ak mwen tape wouj

400
00:18:03,530 --> 00:18:07,350
epi mwen pa kolabore plis
men klike Rejis, remake kounye a.

401
00:18:07,350 --> 00:18:08,940
Li pa solisyon an sèksi.

402
00:18:08,940 --> 00:18:10,900
Mwen te omwen kenbe erè sa a.

403
00:18:10,900 --> 00:18:12,900
Apre sa, mwen te itilize alèt la
fonksyon nan JavaScript

404
00:18:12,900 --> 00:18:14,090
ki nou ap sèlman lè l sèvi avèk nan klas la.

405
00:18:14,090 --> 00:18:16,430
An jeneral, ou pa ta dwe itilize sa a
paske li ka trè byen vit jwenn soti

406
00:18:16,430 --> 00:18:17,160
nan kontwòl.

407
00:18:17,160 --> 00:18:19,180
Men, modpas pa matche ak se erè a.

408
00:18:19,180 --> 00:18:21,120
>> Kite m 'ale pi devan epi klike sou OK.

409
00:18:21,120 --> 00:18:25,040
Men, sa ki Takeaway kle a isit la
se ke URL la pa t 'chanje.

410
00:18:25,040 --> 00:18:27,960
Se konsa, mwen pa te anmande gaspiye
tan sèvè a mande li

411
00:18:27,960 --> 00:18:30,750
yon kesyon ke mwen te ka gen
kalkile konnen repons lan nan tèt mwen.

412
00:18:30,750 --> 00:18:33,210
>> Ak itilizatè a, menm si
te pale sou sa a

413
00:18:33,210 --> 00:18:35,264
pi long pase a nan itilizatè
ale nan panse osijè de sa a,

414
00:18:35,264 --> 00:18:36,680
ki pral gen fidbak enstantane.

415
00:18:36,680 --> 00:18:39,044
Gen nan pa gen latansi ak
koneksyon nan rezo.

416
00:18:39,044 --> 00:18:40,460
Se konsa, kite pou yo gade nan sa a kòd sous.

417
00:18:40,460 --> 00:18:45,600
>> Sanble Form1.html
struktural ki sanble moute isit la.

418
00:18:45,600 --> 00:18:46,810
Fòm nan se an reyalite menm bagay la.

419
00:18:46,810 --> 00:18:48,330
Men, kite a wè sa mwen te fè desann isit la.

420
00:18:48,330 --> 00:18:49,913
Apre sa, nan diferan fason yo fè sa.

421
00:18:49,913 --> 00:18:53,690
Apre sa, mwen te fè pi tou dwat nan
disip men se pa fason ki pi elegant ankò.

422
00:18:53,690 --> 00:18:54,869
Mwen gen yon tag script.

423
00:18:54,869 --> 00:18:57,035
Mwen Lè sa a rele
document.getElementByID ('enskripsyon').

424
00:18:57,035 --> 00:19:00,090

425
00:19:00,090 --> 00:19:04,420
Apre sa, mwen magazen ke valè
nan fòm, yon varyab.

426
00:19:04,420 --> 00:19:05,520
>> Se konsa, sa m 'fè?

427
00:19:05,520 --> 00:19:08,960
Ou ka panse a
document.getElementByID tankou se te

428
00:19:08,960 --> 00:19:11,200
yon fonksyon espesyal ki
JavaScript ba ou

429
00:19:11,200 --> 00:19:14,400
ki literalman men ou yon
konsèy nan youn nan nœuds yo

430
00:19:14,400 --> 00:19:16,520
oswa rektang nan pye bwa sa a.

431
00:19:16,520 --> 00:19:21,470
Se konsa, kounye a ke a ki sa varyab nou an fòm
nan JavaScript se aktyèlman montre nan.

432
00:19:21,470 --> 00:19:25,120
>> Se konsa, kounye sentaks la se diferan de
C. Men, n ap fè yon bagay kèk isit la.

433
00:19:25,120 --> 00:19:30,360
Youn, yon sèl sa a se yon ti kras etranj
kap, sètènman kont C.

434
00:19:30,360 --> 00:19:32,180
Men, gade nan liy 35.

435
00:19:32,180 --> 00:19:35,130
Se konsa, sou form.onsubmit gòch la.

436
00:19:35,130 --> 00:19:38,060
Sonje byen, onsubmit se
tankou yon jaden nan yon struct.

437
00:19:38,060 --> 00:19:41,480
Si ou panse nan varyab la fòm
se jis ke yo te yon struct C,

438
00:19:41,480 --> 00:19:42,600
li ta ka gen kèk jaden yo.

439
00:19:42,600 --> 00:19:46,410
>> Retounen nan jou a, nou te gen elèv yo non,
Idantite, kay, sa yo ki kalite nan jaden.

440
00:19:46,410 --> 00:19:48,520
Sèlman panse a kòm yon lòt onsubmit jaden.

441
00:19:48,520 --> 00:19:53,380
Men, li la yon jaden espesyal paske nan
se navigatè preprograme ou kapab espere

442
00:19:53,380 --> 00:19:57,530
.onsubmit pa yo dwe yon valè
tankou yon nimewo oswa fisèl,

443
00:19:57,530 --> 00:20:01,180
men yo aktyèlman ap yon fonksyon
oswa adrès la nan yon fonksyon

444
00:20:01,180 --> 00:20:02,570
nan memwa òdinatè a.

445
00:20:02,570 --> 00:20:04,740
>> Ak tout bon, se sa ki
mo kle sa a isit la fè.

446
00:20:04,740 --> 00:20:06,710
Sa a di, ban m 'yon fonksyon nouvo.

447
00:20:06,710 --> 00:20:09,390
Men, sa ki non li
pral fè, aparamman?

448
00:20:09,390 --> 00:20:10,800
>> Panse tounen nan Lendi.

449
00:20:10,800 --> 00:20:13,430

450
00:20:13,430 --> 00:20:17,170
Ki sa ki se non an nan sa a
fonksyon ki baze sou ki sentaks sa a?

451
00:20:17,170 --> 00:20:19,784
Non, mwen vle di, gen nan byen klè
okenn non associated-- sètènman

452
00:20:19,784 --> 00:20:21,200
pa nan sa mwen te make isit la.

453
00:20:21,200 --> 00:20:22,560
>> Men, sa a aktyèlman OK.

454
00:20:22,560 --> 00:20:25,840
Sa a se yon fonksyon anonim, oswa yon
fonksyon LAMBDA tankou kèk ta ka rele li.

455
00:20:25,840 --> 00:20:27,589
Epi ki jis vle di
li la toujou yon fonksyon.

456
00:20:27,589 --> 00:20:29,400
Se jis, ou pa ka rele li pa non.

457
00:20:29,400 --> 00:20:30,057
Men, sa a OK.

458
00:20:30,057 --> 00:20:33,140
Paske ankò, te navigatè a te
preprograme pa konpayi tankou Google

459
00:20:33,140 --> 00:20:38,540
oswa Microsoft oswa Mozilla oswa lòt moun
jis konnen ke si jaden an .onsubmit

460
00:20:38,540 --> 00:20:43,400
andedan nan yon eleman fòm gen nan
valè, trete li kòm yon fonksyon

461
00:20:43,400 --> 00:20:44,750
yon konsèy fonksyon, si ou pral.

462
00:20:44,750 --> 00:20:46,910
Ak rele li lè se soumèt fòm nan.

463
00:20:46,910 --> 00:20:50,350
>> Se konsa, sa Kòd ta dwe egzekite
lè se soumèt fòm lan?

464
00:20:50,350 --> 00:20:52,526
Aparamman, tout bagay
andedan nan atèl a Curly.

465
00:20:52,526 --> 00:20:53,650
Lè sa a se jis stylistic.

466
00:20:53,650 --> 00:20:55,626
>> Ou te kapab fè sa tankou
nou gen tandans fè nan CS50.

467
00:20:55,626 --> 00:20:58,250
Men, nan JavaScript, pi fò moun
yo gen tandans kenbe l 'sou liy lan menm

468
00:20:58,250 --> 00:21:01,960
jis paske li pi klè se
ki asosye ak ki fonksyon mo kle.

469
00:21:01,960 --> 00:21:03,240
Se konsa, kounye a ki sa mwen fè?

470
00:21:03,240 --> 00:21:08,616
>> Si form.email.value egal egal
fisèl la vid oswa pa gen anyen, isit la nan

471
00:21:08,616 --> 00:21:11,490
yon alèt kote mwen pral di,
ou dwe bay adrès imel ou,

472
00:21:11,490 --> 00:21:12,690
ak Lè sa a retounen fo.

473
00:21:12,690 --> 00:21:15,720
Lè li nan ki fo retounen ki
anpeche fòm nan nan men yo te soumèt.

474
00:21:15,720 --> 00:21:19,480
Pandan se tan, si valè a se modpas
vid, mwen pral rele nan itilizatè a

475
00:21:19,480 --> 00:21:21,150
ak di, ou dwe bay yon modpas.

476
00:21:21,150 --> 00:21:23,700
>> Pandan se tan bagay sa yo ap resevwa
yon ti kras amateur isit la.

477
00:21:23,700 --> 00:21:29,160
Si form.password.value pa fè sa
egal form.confirmation.value,

478
00:21:29,160 --> 00:21:31,680
jaden an lòt, rele nan
itilizatè a ki modpas yo

479
00:21:31,680 --> 00:21:33,860
pa matche ak jan yo
pa t 'yon ti moman de sa.

480
00:21:33,860 --> 00:21:35,780
Lè sa a, yon sèl sa a nan yon
ti kras sexier paske mwen

481
00:21:35,780 --> 00:21:40,470
konnen mwen te konnen concept ki
tcheke se non yon bwat chèk la.

482
00:21:40,470 --> 00:21:45,680
>> Se konsa, mwen ka jis sèvi ak yon esklamasyon
pwen nan di si chèk la se pa

483
00:21:45,680 --> 00:21:48,040
checked-- li nan Boolean a
valè, vre oubyen fo

484
00:21:48,040 --> 00:21:49,700
Mwen pral rele nan itilizatè a pou rezon sa.

485
00:21:49,700 --> 00:21:52,300
Sinon, si nou jwenn nan
tout nan kondisyon sa yo,

486
00:21:52,300 --> 00:21:53,270
kite yo jis retounen vre.

487
00:21:53,270 --> 00:21:54,700
Se pou dwe soumèt fòm nan.

488
00:21:54,700 --> 00:21:56,560
Lè sa a pral Lè sa a rive.

489
00:21:56,560 --> 00:21:57,740
>> Se pou yo tape nan twal lenn tou.

490
00:21:57,740 --> 00:22:00,230
Se pou yo tcheke bwat la, klike sou Anrejistre.

491
00:22:00,230 --> 00:22:01,979
Koulye a, mwen ale nan nan destinasyon an.

492
00:22:01,979 --> 00:22:03,270
Koulye a, gen nan pa gen baz done a.

493
00:22:03,270 --> 00:22:05,370
Pa gen anyen ki enteresan
nan register.php.

494
00:22:05,370 --> 00:22:07,980
Mwen jis bezwen yon bagay
yo aktyèlman pale ak.

495
00:22:07,980 --> 00:22:09,140
Se konsa, kite m 'pran yon poz, isit la.

496
00:22:09,140 --> 00:22:16,270
Nenpòt kesyon sou sa nou te jis fè
oswa sa ki kèk nan sentaks nouvo sa a se?

497
00:22:16,270 --> 00:22:17,640
OK, yeah?

498
00:22:17,640 --> 00:22:20,025
>> ODYANS: Se konsa, nenpòt toulède kaz
se otomatikman yon Boolean.

499
00:22:20,025 --> 00:22:21,650
Ou pa bezwen deklare li tankou sa.

500
00:22:21,650 --> 00:22:22,649
>> DAVID J. Malan: kòrèk.

501
00:22:22,649 --> 00:22:29,340
Nenpòt toulède kaz ki nan voye ba ou soti nan
yon fòm HTML nan kòd JavaScript ou

502
00:22:29,340 --> 00:22:31,760
Y ap trete, se wi, kòm yon
Boolean value-- vre oubyen fo.

503
00:22:31,760 --> 00:22:32,635
Li se yon bon kesyon.

504
00:22:32,635 --> 00:22:36,080
Lè nou konsidere ke lòt valè yo, nan
kou, yo te tèks, strings AKA.

505
00:22:36,080 --> 00:22:38,500
>> Tout dwa, se konsa kite m '
remonte yon ti jan pi lwen.

506
00:22:38,500 --> 00:22:39,900
Ki sa ki te pwen an antye nan sa a?

507
00:22:39,900 --> 00:22:41,400
Jis yo dwe klè.

508
00:22:41,400 --> 00:22:44,940
Tankou, nou deja konnen, yo soti nan pset7
e menm soti nan konferans semèn pase a

509
00:22:44,940 --> 00:22:51,120
egzanp, ke nou ka evidamman tcheke
$ _GET $ _POST Wè si itilizatè a ban nou

510
00:22:51,120 --> 00:22:52,200
yon valè vid.

511
00:22:52,200 --> 00:22:54,400
Sonje fonksyon an vid nan PHP.

512
00:22:54,400 --> 00:22:58,040
>> Se konsa, jis yo dwe klè, sa ki nan
yon rezon ki fè nou ta ka tou

513
00:22:58,040 --> 00:23:00,535
vle fè sa kont kouran erè
andedan nan navigatè a?

514
00:23:00,535 --> 00:23:03,350

515
00:23:03,350 --> 00:23:06,080
Ki sa ki nan motivasyon an isit la?

516
00:23:06,080 --> 00:23:06,580
Yeah.

517
00:23:06,580 --> 00:23:09,735
>> ODYANS: Pi vit, epi ou pa fè sa
voye done initil nan sèvè a.

518
00:23:09,735 --> 00:23:10,610
DAVID J. Malan: Bon.

519
00:23:10,610 --> 00:23:11,170
Li nan pi vit.

520
00:23:11,170 --> 00:23:12,920
Ou pa voye initil
done nan sèvè a.

521
00:23:12,920 --> 00:23:14,670
>> Se konsa, ou jwenn tounen yon plis
imedya repons.

522
00:23:14,670 --> 00:23:16,560
Epi an jeneral, itilizatè a
eksperyans se pi bon.

523
00:23:16,560 --> 00:23:17,900
Reflechi sou altènatif la.

524
00:23:17,900 --> 00:23:21,160
>> Si pou Gmail-- e li te
ka a anpil ane de sa.

525
00:23:21,160 --> 00:23:24,160
Sipoze ou te resevwa yon nouvo imel Gmail ou
kont, men wout la sèlman nan

526
00:23:24,160 --> 00:23:26,510
yo wè ke se yo, tankou,
Reload paj la tout antye.

527
00:23:26,510 --> 00:23:29,030
Ann sipoze ou klike sou
yon ap mennen nan li yon imel.

528
00:23:29,030 --> 00:23:31,600
>> Tout bagay te Reload konsa
ke ou ka wè imel la.

529
00:23:31,600 --> 00:23:33,380
Oswa Facebook-- ou jwenn yon mesaj chat.

530
00:23:33,380 --> 00:23:36,000
Ou pa wè li jiskaske ou rechargement
paj la oswa klike sou kèk lyen.

531
00:23:36,000 --> 00:23:38,380
>> Tankou, sa a ta dwe yon vrèman
anmèdan itilizatè eksperyans.

532
00:23:38,380 --> 00:23:41,300
Lè sa a se sa li te tankou,
byen klè, tounen lè mwen kouri pou UC

533
00:23:41,300 --> 00:23:44,760
ak entènèt la te anpil mwens dinamik
ak JavaScript pa t 'kòm vulgarize

534
00:23:44,760 --> 00:23:45,601
kòm li se kounye a.

535
00:23:45,601 --> 00:23:47,850
Ak bagay sa yo ap resevwa pi
plis dinamik ak plis ankò

536
00:23:47,850 --> 00:23:49,900
bò kliyan nan sans sa.

537
00:23:49,900 --> 00:23:54,370
>> Men, gen yon trape isit la, ak
sa a se kalite yon gotcha anmèdan.

538
00:23:54,370 --> 00:23:58,720
Jis paske ou ajoute bò kliyan
deteksyon tankou sa a pa vle di

539
00:23:58,720 --> 00:24:01,430
ou ka oswa ta dwe abandone
sèvè bò deteksyon.

540
00:24:01,430 --> 00:24:04,080
Ou esansyèlman vle mete ou
erè tcheke nan tou de kote.

541
00:24:04,080 --> 00:24:05,830
Paske sa se te youn
nan leson an te aprann

542
00:24:05,830 --> 00:24:10,270
soti nan atik la mwen li kèk Ekstrè
soti nan ak sa a estipid CMS system--

543
00:24:10,270 --> 00:24:14,410
Content Management System-- ki te
mete ann aplikasyon sistèm otantifikasyon li yo,

544
00:24:14,410 --> 00:24:16,790
login li yo atravè sa mekanis?

545
00:24:16,790 --> 00:24:19,515

546
00:24:19,515 --> 00:24:20,469
JavaScript.

547
00:24:20,469 --> 00:24:21,499
>> ODYANS: JavaScript.

548
00:24:21,499 --> 00:24:23,290
DAVID J. Malan:
JavaScript, egzakteman, dwa?

549
00:24:23,290 --> 00:24:24,610
Li te lè l sèvi avèk JavaScript.

550
00:24:24,610 --> 00:24:27,120
Ak literalman, ou nèg gen
te jwe yon ti kras pwobableman

551
00:24:27,120 --> 00:24:28,700
ak Enspektè Chrome a.

552
00:24:28,700 --> 00:24:30,890
Men, si mwen ka jwenn li, enspekte eleman.

553
00:24:30,890 --> 00:24:33,670
>> Kite m 'janbe lòt bò nan fè
tout nan opsyon Chrome a.

554
00:24:33,670 --> 00:24:37,080
Lè sa a se ki jan fasil li se yo
enfim JavaScript nan yon navigatè.

555
00:24:37,080 --> 00:24:38,950
Tcheke, pa plis JavaScript.

556
00:24:38,950 --> 00:24:41,070
>> Se konsa, nan etidye ekite Règleman, yon anpil
nan entènèt la jou sa yo

557
00:24:41,070 --> 00:24:43,430
se jis ale nan kraze paske
Gmail ak lòt sites--

558
00:24:43,430 --> 00:24:46,140
Facebook-- asime ke
JavaScript pèmèt.

559
00:24:46,140 --> 00:24:50,180
Men, si w ap fè yon bagay estipid
tankou sèlman validation itilizatè D '

560
00:24:50,180 --> 00:24:52,520
epi tyeke li pou
erè sou bò kliyan,

561
00:24:52,520 --> 00:24:54,940
yon lènmi te kapab fasilman fè sa.

562
00:24:54,940 --> 00:24:57,180
Lè sa a, menm pi entelijan
lènmi tankou ou nèg

563
00:24:57,180 --> 00:25:01,120
kounye a ta ka itilize telne oswa Curl
oswa lòd jis liy kòmandman

564
00:25:01,120 --> 00:25:05,300
ak aktyèlman voye mesaj nan sèvè a
ki Menm jan an tou yo pa erè w tcheke yo.

565
00:25:05,300 --> 00:25:08,380
>> Se konsa, sa a se plis nan yon
itilizatè desizyon koòdone

566
00:25:08,380 --> 00:25:13,060
pase sa li se yon vrè teknik
improvement-- mete ann aplikasyon

567
00:25:13,060 --> 00:25:14,410
bò kliyan yon bagay tankou sa a.

568
00:25:14,410 --> 00:25:16,800
Se konsa, kounye Yon ti koutje sou rapid, men Lè sa a,
Mwen pral ranvwaye yo mache byen sou entènèt

569
00:25:16,800 --> 00:25:17,674
nan pou yon sèl sa a.

570
00:25:17,674 --> 00:25:21,480
Nan fòm de, nou aktyèlman te ale nan
epi netwaye moute kòd la yon ti kras.

571
00:25:21,480 --> 00:25:23,650
Men, kite m 'ranvwaye nan yon sèl
nan videyo yo nou pral gen anpil chans

572
00:25:23,650 --> 00:25:27,970
embed nan pset8 ki jis montre ou yon
menm jan sentaks lè l sèvi avèk yon bibliyotèk rele

573
00:25:27,970 --> 00:25:32,320
jQuery, ki se yon super, super
bibliyotèk popilè nan JavaScript

574
00:25:32,320 --> 00:25:34,510
ki franchman pi fò moun
jis itilize jou sa yo

575
00:25:34,510 --> 00:25:37,070
e menm konfonn kòm
ke yo te JavaScript tèt li.

576
00:25:37,070 --> 00:25:38,950
>> Epi li gen tandans fè paran yo
kèk siy dola

577
00:25:38,950 --> 00:25:41,350
ak mo kle tankou dokiman
nan parantèz isit la.

578
00:25:41,350 --> 00:25:44,480
Men, ankò, kite m 'ranvwaye
kèk tutoryèl pi dousman sou entènèt

579
00:25:44,480 --> 00:25:46,750
olye ke jwenn mare nan jis sentaks.

580
00:25:46,750 --> 00:25:48,630
Se pou yo deplase sou li nan
yon bagay yon ti kras pi fre

581
00:25:48,630 --> 00:25:50,520
an tèm de aplikasyon yo nan sa a.

582
00:25:50,520 --> 00:25:57,730
>> Se konsa, an patikilye, kite m 'ale
pi devan epi louvri moute sa a isit la.

583
00:25:57,730 --> 00:25:58,340
Vini non sou.

584
00:25:58,340 --> 00:25:59,380
Gen nou ale.

585
00:25:59,380 --> 00:26:01,500
>> Kite m 'louvri moute foto sa a isit la.

586
00:26:01,500 --> 00:26:03,450
San nesesite konplike
kap, men li

587
00:26:03,450 --> 00:26:07,880
dekri yon teknik yo rele AJAX--
Asenkron JavaScript ak XML, kote

588
00:26:07,880 --> 00:26:10,530
X a pou XML se aktyèlman
pa gen okenn ankò reyèlman itilize.

589
00:26:10,530 --> 00:26:13,430
Sa gen tandans yo sèvi ak yon bagay
lòt rele JSON.

590
00:26:13,430 --> 00:26:16,560
>> Men, isit la se ki jan yon bagay tankou
Google Maps oswa Google Latè ap travay.

591
00:26:16,560 --> 00:26:18,060
Ann eseye sa a sou vole a, aktyèlman.

592
00:26:18,060 --> 00:26:21,590
Kite m 'ale pi devan epi louvri
moute Chrome sou navigatè m 'yo.

593
00:26:21,590 --> 00:26:26,236
>> Ak kite m 'ale nan,
di, maps.google.com.

594
00:26:26,236 --> 00:26:29,260

595
00:26:29,260 --> 00:26:31,930
Ak aktyèlman, si w ap fin vye granmoun
ase yo sonje sa,

596
00:26:31,930 --> 00:26:35,600
tankou, MapQuest te tankou tounen nan jou a,
e petèt yo toujou travay tankou sa a.

597
00:26:35,600 --> 00:26:38,870
Lè ou itilize pou fè rechèch pou something--
33 Oxford Street, Cambridge, Mass,

598
00:26:38,870 --> 00:26:40,650
kite a fè this-- ou
ta aktyèlman, si ou

599
00:26:40,650 --> 00:26:43,000
te vle Pan leve, li
desann, kite la ak dwa,

600
00:26:43,000 --> 00:26:44,920
ou ta gade tankou yon
gwo flèch sou tèt, epi li

601
00:26:44,920 --> 00:26:46,921
ta montre ou yon lòt
ankadreman nan kat jeyografik la moute isit la.

602
00:26:46,921 --> 00:26:49,753
Oswa ou ta klike sou bò gòch, epi ou
ta ale sou isit la, oswa yon lòt klike sou

603
00:26:49,753 --> 00:26:51,000
epi ou ta ale sou isit la.

604
00:26:51,000 --> 00:26:53,000
Men, olye pou yo
jou, nou nan kou jis

605
00:26:53,000 --> 00:26:55,970
pran pou yo akòde ke nou ka ale
alantou Cambridge trè byen vit

606
00:26:55,970 --> 00:26:57,550
jis pa Sur Et derapaj.

607
00:26:57,550 --> 00:26:59,130
Men, remake gen nan kèk pepen.

608
00:26:59,130 --> 00:27:02,160
>> Si m 'fè sa a rapid,
sa ki sanble yo dwe ap pase

609
00:27:02,160 --> 00:27:05,960
jan mwen trennen yon ti kras twò vit
pou òdinatè a kenbe moute?

610
00:27:05,960 --> 00:27:07,160
Kisa ou wè?

611
00:27:07,160 --> 00:27:07,660
Yeah.

612
00:27:07,660 --> 00:27:09,232
>> ODYANS: piksèl yo pa rafrechi.

613
00:27:09,232 --> 00:27:10,940
DAVID J. Malan: nan
piksèl pa rafrechi.

614
00:27:10,940 --> 00:27:12,870
Genyen aktyèlman epi ou
te kapab wè sa a, aktyèlman,

615
00:27:12,870 --> 00:27:15,360
si w ap gade sou entènèt ak pran yon poz
sa a oswa aktyèlman ralanti bagay sa yo desann

616
00:27:15,360 --> 00:27:18,600
pou once-- ou pral wè ke gen
mozayik, kare, rektang oswa ki

617
00:27:18,600 --> 00:27:22,040
yo ki disparèt nan kat la jouk
yon dezyèm fann pita, plis done,

618
00:27:22,040 --> 00:27:24,390
plis imaj aktyèlman
parèt sou ekran an.

619
00:27:24,390 --> 00:27:29,810
Ak an reyalite, si nou fè sa pa gade
moute Chrome's-- kite la di, Chrome--

620
00:27:29,810 --> 00:27:30,310
kite a wè.

621
00:27:30,310 --> 00:27:31,090
Nou pa ka fè sa.

622
00:27:31,090 --> 00:27:31,860
>> Oh, whoops.

623
00:27:31,860 --> 00:27:34,761
Se pou nou louvri moute maps.google.com.

624
00:27:34,761 --> 00:27:36,660
Kite m 'fè fenèt la pi gwo ankò.

625
00:27:36,660 --> 00:27:38,836
>> Tounen nan 33 Oxford Street.

626
00:27:38,836 --> 00:27:42,010

627
00:27:42,010 --> 00:27:43,760
Ki sa ki te sou sit wèb la mwen te sou dènyèman?

628
00:27:43,760 --> 00:27:46,440
Mwen te gen sa a, tankou, divage prive yo
tèt mwen ke mwen ta Lè sa a, mesaj enstantane

629
00:27:46,440 --> 00:27:48,470
nenpòt zanmi ki moun ki te sou entènèt
ki te vle tande li.

630
00:27:48,470 --> 00:27:49,345
Genyen kèk sit entènèt.

631
00:27:49,345 --> 00:27:52,680
Mwen panse ke li se konsa Comcast--
yon trè gwo ISP Ameriken.

632
00:27:52,680 --> 00:27:56,355
Ou ka, lè ou ap enskri pou nouvo kab
sèvis oswa kab modem sèvis televizyon,

633
00:27:56,355 --> 00:27:59,230
yo gen yon fòm trè rezonab
kote yo mande w pou adrès ou.

634
00:27:59,230 --> 00:28:01,450
Epi yo gen sa a etonan
karakteristik rele konplè oto,

635
00:28:01,450 --> 00:28:04,600
tankou Google, ki kòmanse ranpli
nan repons lan nan kesyon ou yo.

636
00:28:04,600 --> 00:28:08,090
>> Pwoblèm lan se yo, yo fè konplè oto
sou bagay ki premye ke ou tape.

637
00:28:08,090 --> 00:28:12,890
Se konsa, si ou kòmanse sezisman nan 33, li
pral montre w literalman chak kay

638
00:28:12,890 --> 00:28:15,790
nan Amerik ki kòmanse
avèk nimewo a 33

639
00:28:15,790 --> 00:28:17,920
anvan kontinye
atann ou a tape plis.

640
00:28:17,920 --> 00:28:20,660
Se konsa, si ou tape 33 Oxford,
Lè sa a, li montre ou tout lari

641
00:28:20,660 --> 00:28:24,726
nan Amerik ki gen 33 Oxford nan
non li, endepandaman nan vil la

642
00:28:24,726 --> 00:28:25,350
ki w ap nan.

643
00:28:25,350 --> 00:28:26,320
>> Lè sa a, ou kontinye sezisman.

644
00:28:26,320 --> 00:28:28,930
Epi finalman, li reyalize ke yo pa fè sa
sèvis ofri bay kay ou nan Cambridge

645
00:28:28,930 --> 00:28:29,920
oswa yon bagay tankou sa.

646
00:28:29,920 --> 00:28:33,410
Men, pwen an se, sa a se pi plis nan
so aplikasyon nan oto

647
00:28:33,410 --> 00:28:34,140
ranpli tout tan.

648
00:28:34,140 --> 00:28:36,400
>> Apre sa, mwen jis ale nan
sou tanjant sa a ankò.

649
00:28:36,400 --> 00:28:39,040
Men, gen fason bon yo
itilize JavaScript ak move fason.

650
00:28:39,040 --> 00:28:40,750
Epi sa a, pa nesesèman yon sèl la pi byen.

651
00:28:40,750 --> 00:28:46,360
>> Men, pwen an isit la, anvan sa a
dyatrib, te yo louvri moute zouti desann isit la

652
00:28:46,360 --> 00:28:49,480
epi louvri moute zouti pwomotè,
kòm nou te ankouraje anvan,

653
00:28:49,480 --> 00:28:52,840
ak yo gade Rezo a
tab jan mwen klike reyèlman vit.

654
00:28:52,840 --> 00:28:55,400
Ak Avi yon pakèt antye
nan jwenn demann ki te pase.

655
00:28:55,400 --> 00:28:57,310
Tout sa ki te pase depi m 'trennen.

656
00:28:57,310 --> 00:29:00,170
>> Lè gen plis chans, tout bon
yon anpil nan ranje sa yo

657
00:29:00,170 --> 00:29:04,060
kounye a se imaj koupe JPEG
Kalite pantomim oswa kalite kontni.

658
00:29:04,060 --> 00:29:07,750
Sa a se paske sa chrome ap fè
chak fwa mwen Sur Et faites, klike sou

659
00:29:07,750 --> 00:29:11,650
ak trennen, se li nan ka akonpli, o, mwen
bezwen ale mande Google Pou mozayik la

660
00:29:11,650 --> 00:29:15,080
sou kat jeyografik la sa a, se sou isit la,
byen vit download li via HTTP,

661
00:29:15,080 --> 00:29:19,550
ak Lè sa a ajoute li nan sa yo rele Dom la
navigatè yo wèb nan pye bwa memwa

662
00:29:19,550 --> 00:29:24,430
reprezantasyon pou ke itilizatè a,
m ', wè ke mozayik mete ajou.

663
00:29:24,430 --> 00:29:26,795
Lè sa a se paske nan
yon teknik yo rele Ajax.

664
00:29:26,795 --> 00:29:28,920
Retounen nan jou a, li vrèman
te ka a ke si ou

665
00:29:28,920 --> 00:29:33,050
te vle chanje sa ki nan sou ekran an,
ou ta gen klike leve, desann, kite,

666
00:29:33,050 --> 00:29:33,550
dwat.

667
00:29:33,550 --> 00:29:34,740
Lè sa a, yon paj nouvo ta louvri.

668
00:29:34,740 --> 00:29:36,531
Men, jou sa yo, tout bagay
se pi plis dinamik.

669
00:29:36,531 --> 00:29:40,490
Li k ap pase nan chemen an nou moun ta
espere ke li aktyèlman ta enteraktif.

670
00:29:40,490 --> 00:29:43,210
Epi li rive reyalize pwogrè sa a pa
fason pou yon teknik yo rele

671
00:29:43,210 --> 00:29:46,170
Ajax, ki se petèt pi byen
eksplike pa yon egzanp.

672
00:29:46,170 --> 00:29:49,730
Premyèman, kite m 'ale pi devan
epi louvri moute yon dosye

673
00:29:49,730 --> 00:29:53,540
rele quote.php nan
kòd distribisyon a jodi a.

674
00:29:53,540 --> 00:29:56,200
>> Lè sa a, kite m 'fè whoops senbòl.

675
00:29:56,200 --> 00:30:02,399
Kite m 'fè senbòl = GOOG
pou jis kèk machandiz.

676
00:30:02,399 --> 00:30:04,440
Oswa aktyèlman, kite a fè nan
yon sèl soti nan Pset GRATIS la.

677
00:30:04,440 --> 00:30:05,270
Antre nan.

678
00:30:05,270 --> 00:30:06,580
>> Epi, koulye a remake sa mwen jwenn tounen.

679
00:30:06,580 --> 00:30:09,210
Se konsa, sa a se yon vrèman
dosye PHP kout ke mwen

680
00:30:09,210 --> 00:30:13,210
te ekri ki tou senpleman prete Kòd
soti nan fonksyon Passage pset7 la

681
00:30:13,210 --> 00:30:17,830
ak krache soti lè l sèvi avèk sa a atèl Curly ak
quotes ak notasyon kolon, aparamman,

682
00:30:17,830 --> 00:30:22,747
pri stock aktyèl la a pou la
konpayi ki ou pase nan via jwenn.

683
00:30:22,747 --> 00:30:24,580
Se konsa, sa a se diferan
soti nan pi fò nan sa nou te

684
00:30:24,580 --> 00:30:26,496
fè l 'nan ki avi mwen se
literalman voye krache deyò

685
00:30:26,496 --> 00:30:27,870
sa ki sanble JavaScript kòd.

686
00:30:27,870 --> 00:30:30,020
>> An reyalite, sa a se yon objè ki JavaScript.

687
00:30:30,020 --> 00:30:34,130
An reyalite, jis yo dwe plis klè,
JavaScript objè Notasyon JSON--

688
00:30:34,130 --> 00:30:38,330
se jis yon fason anpenpan nan di ke ou
ka reprezante done nan JavaScript anpil

689
00:30:38,330 --> 00:30:41,660
tankou ou ka nan PHP
lè l sèvi avèk valè kle pè.

690
00:30:41,660 --> 00:30:44,270
Se konsa, si mwen te vle deklare
yon varyab nan JavaScript

691
00:30:44,270 --> 00:30:47,872
reprezante Zamyla, pou
instance-- yon struct pou Zamyla--

692
00:30:47,872 --> 00:30:49,580
epi nou pral rele li
elèv, sa a varyab.

693
00:30:49,580 --> 00:30:53,060
ID li se yon sèl, kay se
Winthrop, ak non se Zamyla.

694
00:30:53,060 --> 00:30:55,490
>> Men, mwen ka gen tou yon etalaj de objè yo.

695
00:30:55,490 --> 00:30:58,710
Se konsa, si mwen aktyèlman te vle gen
yon etalaj nan JavaScript ki gen

696
00:30:58,710 --> 00:31:01,740
miltip objè sa yo, sa a
tan reprezante anplwaye yo,

697
00:31:01,740 --> 00:31:04,910
Mwen ta ka gen sa yo twa
fragman nan Kòd tounen

698
00:31:04,910 --> 00:31:08,560
nan do nan do pou sa yo
twa manm anplwaye ansyen.

699
00:31:08,560 --> 00:31:12,201
Se konsa, sentaks la, bèl
menm jan ak both-- PHP.

700
00:31:12,201 --> 00:31:13,700
Men, sa a se patikilyèman JavaScript.

701
00:31:13,700 --> 00:31:15,940
Li nan notasyon objè.

702
00:31:15,940 --> 00:31:17,240
Se konsa, sa se sa a itil pou?

703
00:31:17,240 --> 00:31:21,580
>> Si mwen ekri kòd ki krache soti JSON--
JavaScript objè Notasyon bagay ki

704
00:31:21,580 --> 00:31:24,670
sanble tankou sa a oswa bagay ki
sanble estrikti Zamyla a,

705
00:31:24,670 --> 00:31:27,730
Mwen ka aktyèlman sèvi ak sa a
nan pwogram mwen ekri.

706
00:31:27,730 --> 00:31:30,660
Kite m 'ale nan ajax0.html.

707
00:31:30,660 --> 00:31:33,310
Lè sa a too-- pa anpil
te panse bay estetik.

708
00:31:33,310 --> 00:31:34,660
Men, gade sa ki rive.

709
00:31:34,660 --> 00:31:37,050
>> Kite m 'ale pi devan epi tape gratis isit la.

710
00:31:37,050 --> 00:31:38,490
Klike sou jwenn quote.

711
00:31:38,490 --> 00:31:41,060
Ak Avi URL la pa te chanje.

712
00:31:41,060 --> 00:31:47,250
Men, mwen t 'jwenn yon pòp moute ak aparamman
pri a jodi a stock peni nan $ 0.15.

713
00:31:47,250 --> 00:31:49,062
Se konsa, pa tout sa ki move.

714
00:31:49,062 --> 00:31:52,020
Men, diferans lan se ke yon jan kanmenm,
done sa a te vin tounen nan m 'dirèkteman.

715
00:31:52,020 --> 00:31:54,250
Men, kite a pran yon etap nan direksyon
yon bagay ki pi konnen yo.

716
00:31:54,250 --> 00:31:58,900
Nan vèsyon youn nan sa a, kite m '
tape gratis ankò, klike sou Jwenn quote,

717
00:31:58,900 --> 00:32:01,146
ak now-- oh, sa a te
aktyèlman vèsyon an jQuery.

718
00:32:01,146 --> 00:32:03,270
Se konsa, kite me-- mwen pa t '
vit-pou pi devan byen lwen ase.

719
00:32:03,270 --> 00:32:05,830
Kite m 'ale nan vèsyon de,
ki se kote mwen te vle.

720
00:32:05,830 --> 00:32:07,260
Avi sa m 'te fè isit la.

721
00:32:07,260 --> 00:32:10,370
Mwen gen yon sit entènèt page-- yon super
senp vèsyon nan nenpòt ki paj entènèt

722
00:32:10,370 --> 00:32:14,260
ou ta ka itilize jodi a ak yon jaden tèks
isit la pou gratis ak Lè sa a aparamman jis

723
00:32:14,260 --> 00:32:14,880
tèks.

724
00:32:14,880 --> 00:32:16,860
>> Sa a se pa yon fòm isit la, aparamman.

725
00:32:16,860 --> 00:32:19,360
Men, si mwen klike sou jwenn
quote, remake paj entènèt mwen an

726
00:32:19,360 --> 00:32:22,760
se sou yo chanje tankou si m '
jis te resevwa yon nouvo mesaj enstantane

727
00:32:22,760 --> 00:32:25,360
oswa tankou si m 'jis te deplase nan
kat ak bezwen yo ka resevwa plis done

728
00:32:25,360 --> 00:32:29,220
te ajoute dynamique nan paj wèb la
san li pa chanje nan URL ak itilizatè a

729
00:32:29,220 --> 00:32:30,980
eksperyans ap resevwa koupe.

730
00:32:30,980 --> 00:32:35,750
Vreman vre, mwen se toujou nan la
egzak menm ajax2.html place--.

731
00:32:35,750 --> 00:32:39,080
>> Se konsa, kite pou yo gade sèlman nan egzanp sa a
ak wè ki jan sa a ap pase.

732
00:32:39,080 --> 00:32:42,490
Kite m 'ale nan ajax2.html.

733
00:32:42,490 --> 00:32:44,770
Ak Avi fòm nan premye.

734
00:32:44,770 --> 00:32:47,092
>> Desann isit la, mwen vire
koupe konplè oto.

735
00:32:47,092 --> 00:32:48,800
Pafwa li vin
anmèdan si navigatè a

736
00:32:48,800 --> 00:32:50,508
ap eseye montre w
antye istwa ou yo.

737
00:32:50,508 --> 00:32:53,450
Se konsa, ou ka fè li nan HTML pa
jis di oto ranpli la.

738
00:32:53,450 --> 00:32:57,290
>> Mwen te bay sa a tèks jaden yon
senbòl olye, yon ID nan senbòl.

739
00:32:57,290 --> 00:32:58,977
Epi, koulye a, sa a se yon karakteristik enteresan.

740
00:32:58,977 --> 00:33:01,310
Nou pa t 'te pale osijè de span,
men ou ka panse sou li

741
00:33:01,310 --> 00:33:03,177
tankou yon tag paragraf oswa div tag.

742
00:33:03,177 --> 00:33:05,010
Li nan sa ki rele yon
nan-liy eleman, ki

743
00:33:05,010 --> 00:33:07,415
vle di ou pa pral resevwa yon paragraf
kraze pi wo a ak anba a li.

744
00:33:07,415 --> 00:33:11,530
Li nan jis ale nan rete nan-liy san yo pa
frape ekivalan a nan antre.

745
00:33:11,530 --> 00:33:17,980
Se konsa, mwen te bay sa a ti moso nan HTML
yo dwe detèmine yon idantifyan inik

746
00:33:17,980 --> 00:33:20,130
ke mwen abitrèman rele pri.

747
00:33:20,130 --> 00:33:21,560
Apre sa, mwen gen yon bouton soumèt.

748
00:33:21,560 --> 00:33:25,420
>> Paske kounye a moute isit lan-- ak sa a se
aktyèlman super etonan Kòd ki jan ti kras

749
00:33:25,420 --> 00:33:27,660
ou ka ekri yo fè
relativman byen òdone things--

750
00:33:27,660 --> 00:33:31,800
remake sa mwen te fè moute isit la si mwen
woulo liv moute nan tèt la nan paj sa a.

751
00:33:31,800 --> 00:33:34,970
Mwen te enkli premye nan
tèt mwen yon tag script

752
00:33:34,970 --> 00:33:37,410
ki aktyèlman referans yon
JavaScript depoze yon lòt kote.

753
00:33:37,410 --> 00:33:39,702
Sa a se soti nan òganizasyon an
ki ekri jQuery,

754
00:33:39,702 --> 00:33:42,660
ak sa a se jis ban nou dènye a
vèsyon an bibliyotèk jQuery yo.

755
00:33:42,660 --> 00:33:46,305
>> Se konsa, sa a se kalite tankou byen file
ladan yo nan C oswa mande pou nan PHP.

756
00:33:46,305 --> 00:33:48,900
Ou sèvi ak tag nan script
ak yon atribi sous.

757
00:33:48,900 --> 00:33:52,030
Men koulye a, kòd pwòp mwen an se
ale yo dwe gen dwa nan isit la.

758
00:33:52,030 --> 00:33:54,170
>> Avi Mwen gen yon fonksyon rele Quotes.

759
00:33:54,170 --> 00:33:56,180
Epi li sanble yon ti kras
skre nan zye premye.

760
00:33:56,180 --> 00:33:57,305
Men, kite a toumante sa a apa.

761
00:33:57,305 --> 00:33:59,090
Ban m 'yon varyab rele URL.

762
00:33:59,090 --> 00:34:01,390
Bay li literalman sa a fisèl.

763
00:34:01,390 --> 00:34:04,530
Se konsa, quotes sèl, quotes doub nan
JavaScript jis ban m 'yon fisèl.

764
00:34:04,530 --> 00:34:06,900
Ki sa ki plis la fè?

765
00:34:06,900 --> 00:34:08,199
Seri.

766
00:34:08,199 --> 00:34:12,610
>> Se konsa, sa kounye a se sentaks la jQuery
ki te pran yon ti kras ap resevwa itilize yo.

767
00:34:12,610 --> 00:34:18,310
Men, sa a jis vle di ale jwenn m 'Dom la
ne ki gen inik idantifyan se senbòl.

768
00:34:18,310 --> 00:34:21,929
Hashtag a gen vle di
inik idantifyan senbòl.

769
00:34:21,929 --> 00:34:24,929
>> Siyen an dola nan la
parantèz jis vle di, vlope sa a

770
00:34:24,929 --> 00:34:28,510
nan jQuery yon sòt de sòs sekrè se konsa
ou jwenn plis fonctionnalités.

771
00:34:28,510 --> 00:34:31,880
Lè sa a, Val se aparamman
yon fonksyon, oswa kòm nou di kounye a,

772
00:34:31,880 --> 00:34:35,219
yon metòd andedan nan sa a ne
ki jis ba ou valè an.

773
00:34:35,219 --> 00:34:38,896
Se konsa, nan kout, lèd ak konfizyon
tankou sa a sanble nan premye gade,

774
00:34:38,896 --> 00:34:42,020
sa a jis vle di jwenn ak itilizatè a tape
nan, mete l 'nan fen fisèl la

775
00:34:42,020 --> 00:34:42,880
pa konkatenan li.

776
00:34:42,880 --> 00:34:43,739
Sa a tout.

777
00:34:43,739 --> 00:34:46,070
>> Se konsa, kounye a, dènye twa liy yo.

778
00:34:46,070 --> 00:34:48,690
Ou ka peze yon anpil nan
fonctionnalités soti nan twa liy yo.

779
00:34:48,690 --> 00:34:52,199
Sa a siy dola, kòm yon
sou kote, se jis yon tinon

780
00:34:52,199 --> 00:34:55,800
pou yon varyab mondyal espesyal
rele literalman jQuery.

781
00:34:55,800 --> 00:34:57,060
>> Siy dola jis sanble fre.

782
00:34:57,060 --> 00:35:00,080
Se konsa, kominote a jQuery jis kalite
nan itilize li kòm senbòl espesyal yo.

783
00:35:00,080 --> 00:35:02,470
Li pa vle di sa li vle di nan PHP.

784
00:35:02,470 --> 00:35:06,356
Nan JavaScript, siy dola se
jis tankou yon lèt nan alfabè a

785
00:35:06,356 --> 00:35:07,480
oswa yon nimewo pou yon varyab.

786
00:35:07,480 --> 00:35:09,000
>> Ou ka jis genyen li kòm non an.

787
00:35:09,000 --> 00:35:09,770
Jis sanble fre.

788
00:35:09,770 --> 00:35:11,890
Se konsa, kominote a
adopte li kòm yon tinon

789
00:35:11,890 --> 00:35:13,390
pou bibliyotèk pwòp yo rele jQuery.

790
00:35:13,390 --> 00:35:15,060
>> Lè li nan super popilè.

791
00:35:15,060 --> 00:35:17,620
Se konsa, jwenn JSON se egzakteman sa.

792
00:35:17,620 --> 00:35:19,920
Li se yon fonksyon ki nan
jan nan jQuery te ekri

793
00:35:19,920 --> 00:35:23,340
ki vin JSON soti nan yon server--
JavaScript Notasyon objè.

794
00:35:23,340 --> 00:35:25,680
Soti nan ki sa URL se li pral
jwenn enfòmasyon sa?

795
00:35:25,680 --> 00:35:27,790
Aparamman soti nan sa a URL isit la.

796
00:35:27,790 --> 00:35:31,180
>> Ak sa ki ta dwe navigatè a fè kòm
pli vit ke li vin tounen repons sa a?

797
00:35:31,180 --> 00:35:36,500
Lè sa a se majik la nan Ajax, se konsa yo
speak-- Asynchrone JavaScript nan XML.

798
00:35:36,500 --> 00:35:41,320
Li difisil yo wè ak sa yo
senp egzanp kòm nou te gen isit la.

799
00:35:41,320 --> 00:35:44,730
>> Men, sa a te asenkron nan
sans ke Kòd mwen lè

800
00:35:44,730 --> 00:35:48,530
egzekite voye yon mesaj bay la
sèvè yo ale jwenn m 'kèk JSON.

801
00:35:48,530 --> 00:35:51,340
Epi li te rive Super vit
ke mwen te resevwa yon repons.

802
00:35:51,340 --> 00:35:55,130
Men, sa ki nan enteresan an se ke sa a
liy nan kòd pa t 'pann òdinatè mwen an.

803
00:35:55,130 --> 00:35:56,550
>> Mwen pa t 'wè yon icon k ap vire.

804
00:35:56,550 --> 00:35:59,200
Mwen pa t 'pèdi nan
kapasite pou avanse pou pi sourit mwen.

805
00:35:59,200 --> 00:36:01,340
Navigatè m 'te aktyèlman parfe amann.

806
00:36:01,340 --> 00:36:06,290
>> Paske wout la JavaScript manch la
repons nan men sèvè a se jan sa a.

807
00:36:06,290 --> 00:36:09,740
Ou enskri sa ou ta rele
yon fonksyon kalbak, ki

808
00:36:09,740 --> 00:36:12,830
jis vle di, hey, JavaScript.

809
00:36:12,830 --> 00:36:16,100
Le pli vit ke sèvè a
reponn ak JSON,

810
00:36:16,100 --> 00:36:18,750
tanpri rele fonksyon sa a anonim.

811
00:36:18,750 --> 00:36:23,910
>> Ak tanpri pase nan fonksyon sa a
tou sa fisèl sèvè a krache soti

812
00:36:23,910 --> 00:36:26,080
kòm yon agiman yo rele done.

813
00:36:26,080 --> 00:36:28,360
Se konsa, nan lòt, mo, si
Mwen rasanble dynamique

814
00:36:28,360 --> 00:36:33,370
yon quote.php URL pase nan sa a
senbòl tankou GRATIS oswa GOOG oswa etajèr,

815
00:36:33,370 --> 00:36:36,830
Mwen Lè sa a, di
JavaScript ale jwenn ki URL.

816
00:36:36,830 --> 00:36:39,080
Sonje ke navigatè a
ki pral retounen yon bagay

817
00:36:39,080 --> 00:36:42,680
ki sanble ak nou te wè pi bonè sa a.

818
00:36:42,680 --> 00:36:45,940
>> Ak sa ki agiman, dezyèm lan
isit la yo ka resevwa JSON ap di

819
00:36:45,940 --> 00:36:48,450
se rele fonksyon sa a
lè sèvè a vin tounen

820
00:36:48,450 --> 00:36:52,440
si li nan 10 milisgond
soti nan kounye a oswa 10 segonn soti nan kounye a.

821
00:36:52,440 --> 00:36:55,840
Epi kòm pli vit ke ou fè sa,
ajoute pri a nan paj la.

822
00:36:55,840 --> 00:36:58,030
Sa a sentaks isit la jis
vle di ale jwenn ne an

823
00:36:58,030 --> 00:37:01,940
soti nan pye bwa a ki gen inik idantifyan
se price-- ki span nou te wè pi bonè.

824
00:37:01,940 --> 00:37:04,320
>> Metòd sa a rele HTML
jis di, ale ranplase

825
00:37:04,320 --> 00:37:08,770
HTML a sa a, se la ansanm ak data.price.

826
00:37:08,770 --> 00:37:10,200
Ki sa ki nan data.price?

827
00:37:10,200 --> 00:37:12,850
Oke, navigatè a, sonje,
te montre m 'sa a vini tounen.

828
00:37:12,850 --> 00:37:14,540
Se konsa, sa a se done.

829
00:37:14,540 --> 00:37:18,100
>> Se konsa, li nan yon ti kras skre
wè vigil yo isit la.

830
00:37:18,100 --> 00:37:19,350
Men, an reyalite, kite m 'fè sa.

831
00:37:19,350 --> 00:37:22,890
Kite m 'jis kole sa a
reyèl vit nan jdi

832
00:37:22,890 --> 00:37:27,240
epi montre sa a tankou nou te montre
Estrikti Zamyla a pi bonè.

833
00:37:27,240 --> 00:37:31,610
>> Ki sa ki sèvè a ap voye tounen se yon
ti kras bagay ki sanble tankou sa a.

834
00:37:31,610 --> 00:37:37,140
Se konsa, data.price se
jis bay m '0,1515.

835
00:37:37,140 --> 00:37:39,310
Se konsa, yon anpil nan k ap deplase
pati isit la tout nan yon fwa.

836
00:37:39,310 --> 00:37:41,860
>> Men, takeaways kle yo se
ke nou gen kapasite sa a

837
00:37:41,860 --> 00:37:44,600
fè plis HTTP
demann lè l sèvi avèk JavaScript

838
00:37:44,600 --> 00:37:46,090
san yo pa gen Reload paj la.

839
00:37:46,090 --> 00:37:49,580
Lè sa a, nou kapab aktyèlman
chanje paj wèb la sou vole a.

840
00:37:49,580 --> 00:37:51,850
Epi li vire soti ki
JavaScript ak lòt lang

841
00:37:51,850 --> 00:37:54,510
kapab itilize kounye a pa sèlman
k ap paj wèb,

842
00:37:54,510 --> 00:37:57,960
men yo aktyèlman ekri lojisyèl
nan yon òdinatè aktyèl,

843
00:37:57,960 --> 00:38:00,240
pa sèlman nan prizon nan Chrome oswa tankou an.

844
00:38:00,240 --> 00:38:03,530
>> An reyalite, if-- Colton, ou ta
renmen rantre nan nou tounen moute isit la

845
00:38:03,530 --> 00:38:06,100
ak kòd laboratwa ou a, ak Chang kòm byen?

846
00:38:06,100 --> 00:38:09,140
Se pou nou ale pi devan, li te gen te pale osijè de
fonksyon anonim e kalbak

847
00:38:09,140 --> 00:38:13,090
ak reyèlman tante sò isit la
ak yon Demo viv ak senyen

848
00:38:13,090 --> 00:38:16,480
teknoloji kwen, youn nan
sa yo elit Mouvman aparèy.

849
00:38:16,480 --> 00:38:18,940
Koulye a, aparèy sa a, sonje,
se yon aparèy ti kras USB

850
00:38:18,940 --> 00:38:25,620
kòm byen that-- sa a, se beautiful--
ki ploge nan pò USB ou.

851
00:38:25,620 --> 00:38:29,120
>> Lè sa a, li bay opinyon
nan fòm lan nan jès moun

852
00:38:29,120 --> 00:38:32,560
pa detekte lè l sèvi avèk travès enfrawouj,
esansyèlman, mouvman soti nan bra ou.

853
00:38:32,560 --> 00:38:35,150
Se konsa, Lè nou konsidere ke sa Maria te eseye
sou anvan te miskilè,

854
00:38:35,150 --> 00:38:39,000
aktyèlman santi sa k ap chanje
bra ou, sa a se enfrawouj ki baze sou.

855
00:38:39,000 --> 00:38:44,390
Se konsa, li kap chèche mouvman ki nan
sòt nan nan esfè nan yon pye oswa konsa

856
00:38:44,390 --> 00:38:46,190
nan aparèy nan tèt li.

857
00:38:46,190 --> 00:38:48,950
>> Se konsa, poukisa pa mwen pran
yon koud nan sa a an premye?

858
00:38:48,950 --> 00:38:53,100
Li kite yo ale pi devan epi voye jete
ou moute sou tèt la isit la.

859
00:38:53,100 --> 00:38:56,250
Se konsa, kite a mete laptop Colton nan moute isit la.

860
00:38:56,250 --> 00:38:58,360
Nou te gen Andre sou televizyon an.

861
00:38:58,360 --> 00:39:00,160
Ak sa ki ou ta renmen m 'fè an premye?

862
00:39:00,160 --> 00:39:02,409
>> COLTON: Ale pi devan epi jis
mete men ou sou sa a Guy

863
00:39:02,409 --> 00:39:04,430
epi ou pral wè kèk briye fantastik.

864
00:39:04,430 --> 00:39:07,230
>> DAVID J. Malan: Trè bèl.

865
00:39:07,230 --> 00:39:11,110
Sa a se tout k ap pase nan tan reyèl.

866
00:39:11,110 --> 00:39:11,889
OK.

867
00:39:11,889 --> 00:39:12,680
Tout dwa, ak YEP.

868
00:39:12,680 --> 00:39:14,119
Se konsa, bèl.

869
00:39:14,119 --> 00:39:15,410
Tout dwa, ki lòt bagay nou ka fè?

870
00:39:15,410 --> 00:39:17,900
>> COLTON: Ale nan pwochen ekran an epi wè.

871
00:39:17,900 --> 00:39:19,136
>> DAVID J. Malan: Tout dwa.

872
00:39:19,136 --> 00:39:21,780
>> COLTON: Yon plezi jwèt ti kras
ki kote ou jwenn fè robo.

873
00:39:21,780 --> 00:39:24,738
>> DAVID J. Malan: Tout dwa, se konsa sa a
se men fo ki montre m 'sa ki fè.

874
00:39:24,738 --> 00:39:27,920
COLTON: Wi Se konsa, ale pi devan
ak gen tan pwan youn nan blòk yo

875
00:39:27,920 --> 00:39:30,637
li mete l 'sou tèt kò ki robo la.

876
00:39:30,637 --> 00:39:32,137
DAVID J. Malan: Oh, gen nan men m '.

877
00:39:32,137 --> 00:39:34,000
Oh.

878
00:39:34,000 --> 00:39:34,780
OK, adorabl.

879
00:39:34,780 --> 00:39:37,500

880
00:39:37,500 --> 00:39:38,650
Tann yon minit, OK.

881
00:39:38,650 --> 00:39:41,320
Gen nou ale.

882
00:39:41,320 --> 00:39:43,590
>> COLTON: mwen te fè yon sèl sou aksidan.

883
00:39:43,590 --> 00:39:45,423
>> DAVID J. Malan: OK, mwen pral jwenn sa a Guy.

884
00:39:45,423 --> 00:39:45,923
Damn li!

885
00:39:45,923 --> 00:39:48,467

886
00:39:48,467 --> 00:39:51,550
Lè nou te pratike sa a dènye
mitan lannwit, ou konnen ki sa sa a dekonsantre nan?

887
00:39:51,550 --> 00:39:54,285
>> Tankou sa a.

888
00:39:54,285 --> 00:39:55,490
OK.

889
00:39:55,490 --> 00:39:55,990
Next yon sèl?

890
00:39:55,990 --> 00:39:56,860
>> COLTON: Asire w.

891
00:39:56,860 --> 00:39:58,818
>> DAVID J. Malan: Tout dwa,
ak gen nan yon twazyèm.

892
00:39:58,818 --> 00:40:01,130

893
00:40:01,130 --> 00:40:01,674
Tout dwa.

894
00:40:01,674 --> 00:40:03,215
COLTON: Ak nan yon sèl sa a, ou jwenn to--

895
00:40:03,215 --> 00:40:04,923
DAVID J. Malan: Oh,
yon sèl sa a nan bèl.

896
00:40:04,923 --> 00:40:06,650
COLTON: --yeah, chwazi apa sa a flè.

897
00:40:06,650 --> 00:40:07,441
DAVID J. Malan: OK.

898
00:40:07,441 --> 00:40:11,170

899
00:40:11,170 --> 00:40:11,670
Pa gen?

900
00:40:11,670 --> 00:40:14,515
Rate.

901
00:40:14,515 --> 00:40:15,570
>> COLTON: Oh, gen ou ale.

902
00:40:15,570 --> 00:40:18,680
>> DAVID J. Malan: Ah, Gade nan sa.

903
00:40:18,680 --> 00:40:19,830
Trè bèl.

904
00:40:19,830 --> 00:40:22,470
Oke, poukisa Dont 'nou pran
soti yon sèl volontè isit la

905
00:40:22,470 --> 00:40:24,180
ki ta renmen vini sou yo.

906
00:40:24,180 --> 00:40:27,500
Kouman sou dwa gen
nan vèt la, se li?

907
00:40:27,500 --> 00:40:30,540
>> Tout dwa, e kite yo have--
olye pou yo fè sa, kèk nan nou

908
00:40:30,540 --> 00:40:34,590
ta ka konnen jwèt sa a isit lan--
koupe kòd la, petèt?

909
00:40:34,590 --> 00:40:35,100
Ann wè.

910
00:40:35,100 --> 00:40:37,320
Nou gen linèt nou an sou plis pase isit la?

911
00:40:37,320 --> 00:40:38,625
>> OK.

912
00:40:38,625 --> 00:40:39,270
Mèsi poutèt ou.

913
00:40:39,270 --> 00:40:39,380
Ki sa ki nan non ou?

914
00:40:39,380 --> 00:40:40,350
>> ODYANS: Laura.

915
00:40:40,350 --> 00:40:41,266
>> DAVID J. Malan: Laura?

916
00:40:41,266 --> 00:40:42,120
Nice yo wè.

917
00:40:42,120 --> 00:40:45,600
Si ou pa lide mete
Google Glass sou linèt ou.

918
00:40:45,600 --> 00:40:46,970
Sa a se Colton.

919
00:40:46,970 --> 00:40:47,650
>> COLTON: Hi.

920
00:40:47,650 --> 00:40:48,140
Nice al kontre ou.

921
00:40:48,140 --> 00:40:49,600
>> DAVID J. Malan: OK, vini sou alantou.

922
00:40:49,600 --> 00:40:52,516
Tout dwa, se konsa sa ki w ap ale nan
fè isit la, li te gen te jwe sa a anvan,

923
00:40:52,516 --> 00:40:55,650
se mete men ou sou
Mouvman nan Alavan isit la.

924
00:40:55,650 --> 00:40:57,210
Epi, koulye a flèch ou ta dwe deplase.

925
00:40:57,210 --> 00:40:57,710
Oh, non.

926
00:40:57,710 --> 00:40:58,066
>> ODYANS: No

927
00:40:58,066 --> 00:40:58,780
>> DAVID J. Malan: Nou
pa vle kite fimen ankò.

928
00:40:58,780 --> 00:40:59,280
OK, rete tann.

929
00:40:59,280 --> 00:41:01,200
Plis pase isit la.

930
00:41:01,200 --> 00:41:03,530
Se konsa, remake jan ou kenbe ou
dwèt sou yon bagay,

931
00:41:03,530 --> 00:41:06,750
sourit la kòmanse yo ale vèt,
ki se ki jan ou klike sou.

932
00:41:06,750 --> 00:41:08,980
>> Se konsa, hover sou Jwe.

933
00:41:08,980 --> 00:41:10,970
Ak jis yon dwèt se amann.

934
00:41:10,970 --> 00:41:13,869
Epi, koulye a klike sou ti kras nan
nèg vèt sou bò gòch la.

935
00:41:13,869 --> 00:41:15,410
Epi, koulye a kenbe jouk li ranpli moute vèt.

936
00:41:15,410 --> 00:41:15,640
Bon.

937
00:41:15,640 --> 00:41:16,990
Koulye a, tankou, nivo yon sèl moute tèt.

938
00:41:16,990 --> 00:41:20,190
>> ODYANS: Yeah, nou vle nivo yon sèl, isit la.

939
00:41:20,190 --> 00:41:21,660
>> DAVID J. Malan: Bon.

940
00:41:21,660 --> 00:41:25,500
OK, se konsa tout sa ou dwe
fè se koupe kòd la.

941
00:41:25,500 --> 00:41:28,240
Kurseur ou a youn nan blan anba isit la.

942
00:41:28,240 --> 00:41:28,880
>> Trè bèl.

943
00:41:28,880 --> 00:41:31,290

944
00:41:31,290 --> 00:41:32,790
Tout dwa, li nan sou yo ka resevwa pi rèd.

945
00:41:32,790 --> 00:41:34,800
Se konsa, kenbe dwèt ou sou pwochen kounye a.

946
00:41:34,800 --> 00:41:37,370

947
00:41:37,370 --> 00:41:39,030
Bon.

948
00:41:39,030 --> 00:41:39,999
Sa a yon sèl difisil.

949
00:41:39,999 --> 00:41:40,966
>> ODYANS: Oh krap.

950
00:41:40,966 --> 00:41:41,466
OK.

951
00:41:41,466 --> 00:41:42,466
Li vle ale ki fason.

952
00:41:42,466 --> 00:41:44,890
Oh krap, that--

953
00:41:44,890 --> 00:41:47,120
>> DAVID J. Malan: Yeah.

954
00:41:47,120 --> 00:41:50,700
Segondè objektif se jwenn tout zetwal yo tou.

955
00:41:50,700 --> 00:41:53,920
Tout dwa, vini an.

956
00:41:53,920 --> 00:41:57,504
>> Ann wè si ou ka jwenn yon tyè sa a.

957
00:41:57,504 --> 00:41:58,004
Bon.

958
00:41:58,004 --> 00:42:05,980

959
00:42:05,980 --> 00:42:06,840
OK, ale sou la.

960
00:42:06,840 --> 00:42:08,850
>> Asire w.

961
00:42:08,850 --> 00:42:11,230
Oh, trè bèl.

962
00:42:11,230 --> 00:42:11,930
Tout dwa.

963
00:42:11,930 --> 00:42:13,534
>> Se konsa, poukisa pa nou ajoune isit la jodi a?

964
00:42:13,534 --> 00:42:15,200
Se pou nenpòt moun ki vin sou moute ki moun ki vle jwe.

965
00:42:15,200 --> 00:42:16,880
Mèsi tèlman yo Laura volontè nou an.

966
00:42:16,880 --> 00:42:18,730
Epi nou pral wè ou nan Lendi.

967
00:42:18,730 --> 00:42:21,190
>> ODYANS: Ou pwobableman vle sa yo tounen.

968
00:42:21,190 --> 00:42:23,640
>> Oratè 2: Nan CS50-- nan pwochen

969
00:42:23,640 --> 00:42:35,222