Advanced Functions - process-oriented programming

Process-oriented programming is an idea to solve the problem, equivalent to martial arts martial art, there is no good or bad between martial arts martial art, so it is to learn object-oriented programming and then we actually no good or bad.

Process-oriented programming, programming is the core word, refers to the process steps to resolve the problem, which is to do, after what, then what, then what ......

Based on the idea of ​​writing a program is like an assembly line in the design, symmetry-oriented programming is actually a mechanical way of thinking.

When we write after login feature, we first need to enter the account number, password, and authentication password is the same twice, and then read the password from the database to verify the user password is correct, then enter the verification code ......, we will be able to implement the login function . In this way the login process of functional problems, and then solve the problem very clear ideas.
Pros: complex flow problem, and then simplify.

Production of soda bottles assembly line, no way to produce Tesla. Input of the next pipeline stage and the output stage are associated. So his poor scalability.

Disadvantages: poor scalability.

Stratified realize the function

 * User functional layers: User specific functions implemented.
 * Interface Layer: connecting the user and the data processing layer functional layer.
 * Data Processing Layer: After the data processing results to the interface layer.
Realize the benefits of layered function: When the end we need to implement web and app software side, we just put data processing layer and the interface layer written, then realize different functional layers to the user, web-side end users using a web functional layer, app end end user using the app functional layer, but the interface layer and the data processing layer are common.

Guess you like

Origin www.cnblogs.com/suren-apan/p/11374773.html