Modular Design Good software is almost always decomposed into modules that are relatively independent of each other. Independent modules makes congitive load easier on the developer working on the software. In an ideal scenario this independence is hard to achive. A good guiding principle to create best modules is to write deep modules. Deep Modules Shallow Modules
The IP address for localhost is traditionally 127.0.0.1, so you’d expect http://localhost:9999 and http://127.0.0.1:9999 to be the same origin. BUT. The origin comparison only compares the string values of the scheme, host, and port, and knows nothing about what host an IP address maps to. In my example, “localhost” and “127.0.0.1” are different strings, and therefore the request isn’t a same-origin request.
User Datagram Protocol is one of the oldest protocol in existence that has been used extensively in client/server applications. Based out of the principal communications protocol, called Internet Protocol (IP), UDP is an alternative for TCP which stands for Transmission Control Protocol. Queries regarding which among the two protocol can be a better choice should be determined only after answering questions based on the context for which you are writing the code for. Since UDP is known for its unreliability, it is important that you use it right. Without any error checking or error correction involved in data transmission UDP is often used in video chat applications because a fall in a packet or two doesn't affect final outcome. The following post will be focused on developing a client server application that will implement using Python. The program can be passed arguments namely - "client" and "server" and the program acts accordingly. ...