generated from mwc/lab_server
could not get the server to run, was get a 404 error
answered questions.
This commit is contained in:
parent
d7601bd42e
commit
51196e2e70
9
notes.md
9
notes.md
|
@ -7,13 +7,14 @@
|
|||
server? What are some advantages of using a program or an app which is
|
||||
completely local?
|
||||
|
||||
|
||||
A remote server ensures you dont lose any data, it is also maintained by others so theres no upkeep on your end. However its on the company to maintain, if they have an error or go out of business you are out of luck.
|
||||
|
||||
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?
|
||||
|
||||
|
||||
I use this kind of thing in web development to deploy a test website to preview it when working on it. I also use a server for 3D printing that I ssh into so that I can remotely control
|
||||
the printers. Theres many uses of servers.
|
||||
|
||||
## 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.
|
||||
|
||||
|
||||
In Steam when you click on any link I am ussimg you get a 200 code that ensure the pages exist. You are returning a 400 when you go to a broken link perhaps.
|
||||
|
||||
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 even that happens during the program running, it could be code, networking issues or something unexpected. I am guessing that when you are creating your app its better to let the program crash. And maybe if you have sensitive data you may want hte program to use an exception and not fully crash.
|
||||
|
|
Loading…
Reference in New Issue