computer science s-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 prerequisites ! multiple...

18
0 Computer Science S-75 Building Dynamic Websites Harvard Summer School https://www.cs75.net/ Lecture 0: HTTP David J. Malan [email protected] http://cs.harvard.edu/malan

Upload: others

Post on 26-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

0

Computer Science S-75 Building Dynamic Websites Harvard Summer School

https://www.cs75.net/

Lecture 0: HTTP

David J. Malan

[email protected] http://cs.harvard.edu/malan

Page 2: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

1

DNS

Image from godaddy.com.

Page 3: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

2

DNS

n  A n  CNAME n  MX n  NS n  ...

Page 4: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

3

Prerequisites

n  Multiple years of programming experience in any language; comfort with HTML and CSS

Page 5: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

4

Expectations

n  Attend all lectures n  Implement three projects

Page 6: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

5

Lectures n  Lecture 0: HTTP n  Lecture 1: PHP n  Lecture 2: PHP, Continued n  Lecture 3: XML n  Lecture 4: SQL n  Lecture 5: SQL, Continued n  Lecture 6: JavaScript n  Lecture 7: Ajax n  Lecture 8: Security n  Lecture 9: Scalability

Page 7: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

6

Sections, Office Hours

n  Mondays, after lecture n  Wednesdays, after lecture

Page 8: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

7

Projects

n  Project 0 n  Project 1 n  Project 2

Page 9: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

8

Grades

n  Scope n  Correctness n  Design n  Style

scope × (3 × correctness + 2 × design + 1 × style)

Page 10: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

9

www.cs75.net

Page 11: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

10

CS50 Discuss

Page 12: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

11

Web Hosts

Image from dreamhost.com.

Page 13: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

12

Virtual Private Servers

Image from linode.com.

Page 14: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

13

CS50 Appliance

Image from fedoraproject.org.

Page 15: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

14

SSH

Page 16: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

15

SFTP

Page 17: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

16

Forms n  Text Fields

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

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

n  Hidden Fields <input name="id" value="123" />

n  Checkboxes <input checked="checked" name=“remember" type="checkbox" />

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

n  Drop-Down Menus <select name=“state"> <option value=""></option> <option value=“MA"></option> <option value=“NY"></option> </select>

Page 18: Computer Science S-75cdn.cs75.net/2012/summer/lectures/0/lecture0.pdf · 3 Prerequisites ! Multiple years of programming experience in any language; comfort with HTML and CSS

17

Computer Science S-75 Building Dynamic Websites Harvard Summer School

https://www.cs75.net/

Lecture 0: HTTP

David J. Malan

[email protected] http://cs.harvard.edu/malan