Question

In: Computer Science

1. Naming patterns play a key role in the organization of data on the web. Why...

1. Naming patterns play a key role in the organization of data on the web. Why these patterns are important?

2. The HTTP protocol specifies the format that a URL must follow. What is the advantage to having a required format for something like a URL?

3. It is required information about all users to be stored on a server. Describe a naming scheme that follow to ensure that a client can request information about a specific user.

4. Assume that somebody is interacting with your server (i.e., they are the client) and that they know nothing about the data on your server. Describe a series of requests/responses that could be used to allow that person to find out what users your server knows about and then request information about a specific user that they are interested in. Include an outline of the information that would be contained in each request and response.

Solutions

Expert Solution

Dear Student, I have spent lot of time on making these terms simple and clean, so if you got something from it, then give it an Upvote. Thank You

Q1) Why Naming patterns are important?

Ans: A Naming pattern is considered a Standard if it describes the recommended rules.

In detail: In general, a naming convention provides a set of rules for choosing the sequence of characters to identify variables, functions, and other elements within code or its documentation.

These rules are used during the creation of host, service, and command names. Knowing the above rules, everyone can easily read and understand the hostnames. But this is not the only advantage. A naming convention:

  • Helps to formalize and promote consistency within a team
  • Improves clarity in case of ambiguity
  • Avoids naming conflicts
  • Allows transferring the project to another team with reduced costs
  • Improves understanding for everybody

Q2) What is the advantage of having a required format for something like a URL?

Ans: It provides below advantage of its:

1. Improved user experience:
A simple URL makes it easy to read for both users and machine, if a user is provided with an alphanumeric URL then he/ she may find it difficult to read and visit the site or web page


2. Rankings
URLs are a minor ranking factor for search engines, that use when determining a particular page or resource's relevance to a search query.


3. Easier to Share
By being obviously shorter, easier to remember, and more trustworthy, our GPlus vanity URL is also engineered to be more sharable than before.

Q3) Describe a naming scheme that follows to ensure that a client can request information about a specific user.

Ans: To access a specific service on a specific server, the user must obtain two credentials.

  • The first credential is for the ticket-granting ticket (in short known as the TGT). Once the ticket-granting service or TGT will decrypt this credential, then the service creates a new second credential for the server that the user is requesting access to this service.
  • Now then the second credential can then be used to request access to the service on that server. After the server has successfully decrypted the second credential, then the user is provided with that access.

Q4) Describe a series of requests/responses that could be used to allow that person to find out what users your server knows about and then request information about a specific user that they are interested in. Include an outline of the information that would be contained in each request and response.

Ans: Basically all is done on HTTP.

HTTP is an asymmetric request-response client-server protocol. An HTTP client sends a request message/request to an HTTP server. The server, in turn, returns a response message. In other words, HTTP is called pull protocol, where the client pulls information from the server.

The HTTP method is a type of call made to the server
1. HTTP GET: here we use GET requests to retrieve resource representation/information only – and not to modify it in any way.
2.HTTP POST: here we use POST APIs to create new subordinate resources

Here we also use status codes in response to check status.
In detail: Status codes are used by a server in response to a client's request made to the server.
the HTTP response status codes are separated into five types.

  • informational response – here request received successfully, continuing process
  • successful – here request received successfully, understood, and accepted
  • redirection – an additional action required
  • client error – the request has a bad request.
  • server error – the server failed to accept the request

Related Solutions

What role does the food web play in the cycle of matter?
What role does the food web play in the cycle of matter?
1/ Sleep is a behavioral state and play a key role in cognition. So how is...
1/ Sleep is a behavioral state and play a key role in cognition. So how is it that sleep disorders (which are associated with NT release by neurons in the brain stem ) alter the cerebral cortex to ultimately affect cognitive function? 2/ Explain one way in which neuroplasticity allows learning and memory to occur. 3/ What do you think Wernicke’s area of an infant develops prior to Broca’s? 4/ Create a short paragraph using the following terms: fovea, cones,...
How would you describe the patterns of inheritance? Does that play a role in when life...
How would you describe the patterns of inheritance? Does that play a role in when life begins? Why or why not?
Provide an example that demonstrates how Learning Patterns play (or have played) a role in your...
Provide an example that demonstrates how Learning Patterns play (or have played) a role in your interactions with the person you selected. Consider which Learning Pattern(s) help you connect and work positively with this person and conversely, which Pattern(s) have contributed to or have the potential to lead to Pattern Conflict.
What role does editorial thinking play in data visualization? Why is it important or not important...
What role does editorial thinking play in data visualization? Why is it important or not important in your opinion?
1) So after reading about actin filaments and how they can play a key role in...
1) So after reading about actin filaments and how they can play a key role in animal cells such as crawling, engulfing particles, or diving in two, I had a question on whether or not actin filaments can have the same roles in other cells (plant, yeast, etc.) and if so how are they similar to that of actin filaments in animal cells?? 2) Eukaryotic cells have a large complex cytoskeleton. Especially in animal cells, they are very large why...
Should the government play a key role in aiding the uninsured and the vulnerable or should...
Should the government play a key role in aiding the uninsured and the vulnerable or should market forces determine who receives care and services when it comes to the population health status?
In a live, web-based simulation, you'll play the role of a founder of a new start-up...
In a live, web-based simulation, you'll play the role of a founder of a new start-up company in the exciting and competitive clean tech sector. As part of the simulation, you'll set prices, determine how many engineers and sales people to hire, and establish set compensation, including salary, stock, options, and profit sharing. As part of your experience, you'll explore how you can build your technology into a successful company. You may choose to pitch your firm to venture capitalists...
What role does a Firewall play in an organization. What are the parameters that can be...
What role does a Firewall play in an organization. What are the parameters that can be utilized with Access Control Lists?
What role does licensure play in ensuring ethical staffing or an organization?
What role does licensure play in ensuring ethical staffing or an organization?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT