WebFund 2013F Final Exam Review: Difference between revisions

From Soma-notes
Created page with "To prepare for the final exam you should study the following node application derived from the solutions to Assignment 4. This code is also available in a [ zip file] and in ..."
 
No edit summary
Line 1: Line 1:
To prepare for the final exam you should study the following node application derived from the solutions to Assignment 4.  This code is also available in a [ zip file] and in an [ unpacked directory].  Consider the following:
To prepare for the final exam you should study the following node application derived from the solutions to Assignment 4.  This code is also available in a [http://homeostasis.scs.carleton.ca/~soma/webfund-2013f/small-adventure2.zip zip file] and in an [http://homeostasis.scs.carleton.ca/~soma/webfund-2013f/small-adventure2 unpacked directory].  Consider the following:
* What does each line do?  Specifically, what errors/loss of functionality would you lose if you remove any line?
* What does each line do?  Specifically, what errors/loss of functionality would you lose if you remove any line?
* What node functionality has been omitted from this application relative to the other ones we have covered this term?
* What node functionality has been omitted from this application relative to the other ones we have covered this term?

Revision as of 16:45, 12 December 2013

To prepare for the final exam you should study the following node application derived from the solutions to Assignment 4. This code is also available in a zip file and in an unpacked directory. Consider the following:

  • What does each line do? Specifically, what errors/loss of functionality would you lose if you remove any line?
  • What node functionality has been omitted from this application relative to the other ones we have covered this term?
  • How would you get this application to run?
  • Where are functions being defined? Called?
  • What is the control flow of this application? Specifically, what code is executed, when, and what HTML and HTTP traffic does it produce? You should be able to trace how requests go from the initial loading of a page (via an HTTP GET), to functions being executed in the server, to an HTML or other document being sent back to the client which may then execute client-side JavaScript code that will then generate further HTTP GETs and POSTs. When discussing what code is executed you should specify individual function calls.

Good luck!

app.js