WebFund 2016W Lecture 4: Difference between revisions

From Soma-notes
Zero (talk | contribs)
Added in-class notes.
 
No edit summary
Line 1: Line 1:
==Video==
The video for the lecture given on January 19, 2016 [http://homeostasis.scs.carleton.ca/~soma/webfund-2016w/lectures/comp2406-2016w-lec04-19Jan2016.mp4 is now available].
==Notes==
==Notes==



Revision as of 21:21, 19 January 2016

Video

The video for the lecture given on January 19, 2016 is now available.

Notes

In-class Notes

Lecture 4
---------
Web servers

What does a web server do?
Listens on port 80, 443, or other port
INPUT: HTTP requests
OUTPUT: HTTP responses & requested documents

tinywebserver.js
 - written in JavaScript (Node)
 - can only serve files
 - understands only a few file types

So tinywebserver is how web servers worked in 1995

What changed since then is now web servers run code to generate responses

Why use frameworks?
 - because we don't want to build up HTML from scratch
 - and, we want logic that is abstracted away
 - and, we want routing
   - have someone else decide which function to call in response to requests

But for this week, bare bones

Debugging