Answered questions on notes.md

This commit is contained in:
owengavi2
2026-02-19 21:05:02 -05:00
parent 83a140e6e9
commit afebdcf088
7 changed files with 526 additions and 9 deletions

View File

@@ -7,12 +7,13 @@
server? What are some advantages of using a program or an app which is
completely local?
An advantage to using a remote server is that data is stored centrally on that server, so if something happens to your personal computer the data on the server will still be intact. Similarly, if something happens to your computer, you can access the server on another computer. An advantage to a completely local server is that you do not need internet connection to access the data, also if the server is on your personal computer, only you can make changes to the data.
2. You just ran a server on your own computer, and connected to it as a client
on the same computer. In what other situations might it be useful to run a
server on your computer, where you're the only client, on the same computer?
Since you do not need intenet connection, it might be useful to run a server on your computer so that you can access it without needing internet connection. Since you are the only one that can make changes, it offers you full control over the server, providing more security.
## Checkpoint 2
@@ -23,10 +24,10 @@
program's behavior. Describe a few routes which you think may exist for your
chosen program's backend server.
On google docs, GET and POST requests are most likley used. When I log in, all my documents are displayed. The program is likely making a GET request to the server to retrieve my documents from the server. Similarly, a POST request is being used when I create a new document.
4. In your own words, what is an exception? When might it be useful to handle an
exception? When is it better not to handle an exception, and instead let the
program crash?
An exception might take place when something minor or something forseen happens, like an unexpected input. A crash woud be useful when there is something very wrong or something unforseen. This could be an error within the server itself.