Quiz

  1. Can you explain question 2? What does 'wrapper' mean?

    Sorry; that was poor wording on my part; I'll fix the question. Here's the question:

    the $.get() method is a wrapper for
        A. $.post()
        B. $.ajax()
        C. $.request()
        D. $.get()
    

    In the reading we learned that $.get() and $.post() are are shortcuts for a low-level method call $.ajax(). I used "wrapper" as a description of a higher-level function that is implement using (wrapping around) a lower-level function.

  2. Will we be learning more about these databases? Like how they are structured and used?

    Not in this class. That's the purpose of CS 304: Databases with Web Interfaces.

    For our purposes, these databases are just like Python dictionaries and the localStorage browser feature that we learned about last time: key/value stores.

    So our current knowledge will be sufficient.

    (In fact, a lot of industrial-strength databases are presented as a key/value store.)

  3. Are these back-end servers accessible by others or only by the API? (not sure if the last part makes sense)

    back-end servers can have different authentication and authorization strategies.

    The Heroku one has no barriers, though they do clear out the database every day or so.

    The one that CS 304 folks are building use username/password and sessions, which means that the login lasts until that browser tab is closed. It will only accept connections from our origin: https://cs.wellesley.edu/

    The username/password means that if you decide to use the database in your final project, you can have your own separate key/value store, so your data is separate from other people's data.

  4. can we do a tutorial or demo of using callbacks in ajax

    For sure; I have several demos planned.