COMP 102 Lecture Notes - Lecture 20: Web Service, Knitting, Json
Document Summary
Winter 2017: explain how the design of a web service exhibits modularity. Diagram with internet sitting out there, then there is the front end (web serving component) and a database component (back end) Back end responsible for managing data: they can be a module because they can exist by themselves. In order to provide functionality, they must work together: what is an algorithm, an algorithm is a define solution to a problem. A non-executable set of commands that accomplishes a task. Transform input into output; a transformation of some sort. If you haven"t indented and python can"t process the code, or if you haven"t put a variable name before an equal sign: syntax are the rules of a coding language. This is because def is a keyword in python. You can use defs", but it will be confusing and might cause the coder to mess up and think he is defining a function.