generated from mwc/lab_server
I answered the question to checkpoint 1 and 2.
This commit is contained in:
12
notes.md
12
notes.md
@@ -6,13 +6,12 @@
|
||||
What are some advantages of using a program or an app which uses a remote
|
||||
server? What are some advantages of using a program or an app which is
|
||||
completely local?
|
||||
|
||||
|
||||
One advantage of using a program that uses remote server is that you are able to access your data from any device.One advantage of using program that is local is that your data stays in your own computer.
|
||||
|
||||
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?
|
||||
|
||||
It can be useful to run a server on your own computer when you are working on personal projects or apps that only one person needs to use.
|
||||
|
||||
|
||||
## Checkpoint 2
|
||||
@@ -22,11 +21,12 @@
|
||||
(unless you have fancy tools), but you can infer some of the calls based on the
|
||||
program's behavior. Describe a few routes which you think may exist for your
|
||||
chosen program's backend server.
|
||||
|
||||
|
||||
I chose the web app google doc. Some route I think that may exist are:
|
||||
- A route to open a document
|
||||
- A route to create a new document when I click “Blank”.
|
||||
|
||||
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 is an error in a program. You can an exception if the program can still keep working. You can let the program crash when the error is too serious to fix.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user