WebFund 2016W Lecture 8: Difference between revisions

From Soma-notes
Zero (talk | contribs)
Added some notes. Not the greatest, somebody else should actually finish them.
 
No edit summary
Line 1: Line 1:
==Video==
The video from the lecture given on February 2, 2016 [http://homeostasis.scs.carleton.ca/~soma/webfund-2016w/lectures/comp2406-2016w-lec08-02Feb2016.mp4 is now available].
==Student Notes==
==Student Notes==



Revision as of 03:18, 3 February 2016

Video

The video from the lecture given on February 2, 2016 is now available.

Student Notes

Agenda

Topics (from assignment 2 & 3)

  • What does the regular expression on line 92 of tinywebserver.js do? (Answer: Prevents breaking out of the current directory by using .. and ~)
  • What does path.normalize do? (Answer: Tries to fix a malformed path. e.g. /home//dave/ becomes /home/dave/)
  • What is Jade? (Answer: Templating language.)