0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

22
0 Computer Science 50 Introduction to Computer Science I Harvard College David J. Malan [email protected] Week 10

Upload: tutorialsruby

Post on 06-Sep-2014

4.421 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

0

Computer Science 50Introduction to Computer Science I

Harvard College

David J. [email protected]

Week 10

Page 2: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

1

Your Classmates by Year

Page 3: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

2

Your Classmates by GenderFemale 29% 79Male 71% 194

Page 4: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

3

Your Classmates’ Comfort Levels

Page 5: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

4

Your Classmates’ Prior Experience

Page 6: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

5

Time Spent on Problem Sets

Page 7: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

6

Oh, the Places You’ll Go!CS 51: Introduction to Computer Science IIsneak preview on Friday, 7 December 2007

Abstraction and design in computation. Topics include: Functional and object-oriented styles of programming; software engineering in the small; implementation of a language interpreter. Goal: understanding how to design large programs to make them readable, maintainable, efficient, and elegant. Exercises in LISP (Scheme) and C++.

CS 61: Systems Programming and Machine Organizationsneak preview on Monday, 10 December 2007

Fundamentals of computer systems programming, machine organization, and performance tuning. This course provides a solid background in systems programming and a deep understanding of low-level machine organization and design. Topics include C and assembly language programming, program optimization, memory hierarchy and caching, virtual memory and dynamic memory management, concurrency, threads, and synchronization.

Page 8: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

7

TFsGradersCoders

Image from http://members.memlane.com/gromboug/P16MvSig.htm.

Page 9: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

8

The year was 1995...

Page 10: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

9

Recommended ReadingTCP/IP Tutorialhttp://www.w3schools.com/tcpip/How Web Servers Workhttp://computer.howstuffworks.com/web-server.htmXHTML Tutorialhttp://www.w3schools.com/xhtml/CSS Tutorialhttp://www.w3schools.com/css/PHP Tutorialhttp://www.w3schools.com/php/SQL Tutorialhttp://www.w3schools.com/sql/

Page 11: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

10

“RTFM”PHP Manualhttp://us.php.net/manual/en/MySQL 5.0 Reference Manualhttp://dev.mysql.com/doc/refman/5.0/en/

Page 12: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

11

Use the Bulletin Board!

Page 13: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

12

TCP/IP

Image from http://www.belkin.com/support/download/files/F5D7231-4.pdf.

Page 14: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

13

HTTP

Image from http://computer.howstuffworks.com/web-server1.htm.

Page 15: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

14

XHTML<!DOCTYPE html

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>hello, world</title>

</head>

<body>

hello, world

</body>

</html>

Page 16: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

15

CSS<!DOCTYPE html

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<link href="styles.css" rel="stylesheet" type="text/css" />

<title>hello, world</title>

</head>

<body>

hello, world

</body>

</html>

Page 17: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

16

Validation

http://validator.w3.org/

Page 18: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

17

FormsText Fields<input name="email" type="text" />

Password Fields<input name="password" type="password" />

Checkboxes<input name="save" type="checkbox" />

Radio Buttons<input name="gender" type="radio" value="F" /><input name="gender" type="radio" value="M" />

Drop-Down Menus<select name="dorm"><option value=""></option><option value="Matthews"></option><option value="Weld"></option>

</select>

Page 19: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

18

Mispellings

$dictionary[$word] = TRUE;

Page 20: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

19

Some Predefined Variables

$_GET

$_POST

Page 21: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

20

SQLSELECT

INSERT

UPDATE

DELETE

Page 22: 0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269

21

Computer Science 50Introduction to Computer Science I

Harvard College

David J. [email protected]

Week 10