Day 20: Thursday, Mar 20th, 2014ΒΆ

  1. Read What is Web 2.0? and, if you feel like it, the Wikipedia page on Web 2.0.

  2. Quiz. (May need to log out of your regular account & log into your account.)

  3. Discussion

  4. “AJAX”

    Why AJAX vs simply loading the page?

    Note: no content push options in HTTP!

    Various reasons for using AJAX:

    • Partial load of data.
    • More interactivity.
    • Less page rendering all at once on the client.
  5. Quote app query diagram. (See Day 19: Tuesday, Mar 18th, 2014.)

  6. Write a query diagram for the chat app.

    To get the chats app, do a clean checkout of my serverz repo into the directory ‘day20’ by doing:

    git clone day20 -b day20

    and then:

    cd day20/chat/
    python2.7 chat-server <port number>

    You probably won’t need to be in an activate virtualenv to do this.

    Finally, go to:<port number>/

    and enter a few messages.

    Draw two query diagrams, the first for what happens when you submit a message and see it in your own browser chat window, and the second for what happens when someone else submits a message and you see it in your chat window.

    Then, write your NetID on the piece of paper and put ‘em in a stack on Table 4.

Part of your HW will be to implement the chat and quotes apps in your own, i.e. as WSGI apps. Feel free to get started with that AFTER you do the query diagrams.

Previous topic

Homework 9

Next topic

Day 19: Tuesday, Mar 18th, 2014

This Page

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to Day 20: Thursday, Mar 20th, 2014 on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.