2.0 KiB
Project Server Notes
Checkpoint 1
-
Lots of software today connects to remote servers, and can't work offline. 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? Completely local you can create something while interacting with the code directly and seeing the results right away. While with the remote server you have to go back and forth with a web browser. A remote server could be more collaborative and every user does not need to run their own version of the code.
-
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?
You can run multiple projects/quieres at once.
Checkpoint 2
- Choose a program (Steam), web app (Google Docs), or app (Weather) that you use frequently. You can't observe the calls this program is making to its server (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.
For the weather app, there is a probably a get route that finds the city in app that you searched and once that is located it routes to a website that has the local forcaste. Post route of the weather, and the updates to the server.
- 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?
Exception is when some errors show up the program knows how to deal with some errors. User perspective you would always want there to be expections and the program to never crash. It can help keep the program running. Coding perspective, its easier to fix a program then try to handle many different exceptions.