What are structured programming and object-oriented programming methods?
1. Structured Programming
In structured programming, any program segment is written based on three structures: branching, looping, and sequential. The program has obvious modular characteristics, each program module has a unique exit and entry statements. Structured programs are readable because of their simple and clear structure, strong modularity, and the way they are described is close to the way people are used to thinking in a deductive way.
2, object-oriented programming
Object-oriented programming method is as much as possible to simulate the way of thinking of human beings, so that the software development methods and processes as close as possible to the human understanding of the world, to solve the real problem of the method and process, that is, even if it is necessary to describe the problem of the problem space and the problem of the solution to the problem of the space as far as possible structurally consistent with the entity of the objective world abstracted into the problem domain of objects. objects in the problem domain.
Classification of Programming
1. According to the nature of the structure, there are structured program design and unstructured program design. The former refers to program design methods and processes with structural nature. It has a hierarchical structure from the basic structure to form a complex structure, the latter vice versa.
2, according to the user’s requirements, there are process-oriented programming and non-process-oriented programming. The former refers to the use of procedural programming language program design, the latter refers to non-procedural programming language program design.
3, according to the nature of the components of programming, sequential programming, concurrent programming, parallel programming, distributed programming. According to the style of programming, there are logical programming, functional programming, object programming.
What are the basic points of structured program design?
The basic points of the structured program design method are:
(1) Adopt the top-down, step-by-step program design method, in the requirements analysis, outline design, have adopted the top-down, layer-by-layer refinement method. In the detailed design, although in the “concrete” design stage, but in the design of a module in the internal processing, can be gradually refined to reduce the complexity of processing details.
(2) Use three basic control structures to construct a program, any program can be constructed from three basic control structures: sequential, selective, and repetitive. The common denominator of these three basic structures is single entry and single exit. Not only can it effectively limit the use of GOTO statements. It also establishes new program design ideas, methods and styles, and at the same time provides a concrete means of implementation for the top-down, step-by-step design method.
(3) the organization of the main programmer group. Refers to the program development of personnel organization should be used by a master programmer (responsible for all technical activities), a backup programmer (coordination, support for the master programmer) and a program administrator (responsible for transactional work, such as the collection and recording of data, documentation management, etc.) three people at the core, plus a number of specialists (such as communications specialists, database specialists) and other technical staff to form a group. This form of organization highlights the leadership of the main programmer, the design responsibility is concentrated in a small number of people, is conducive to the provision of software quality, and can effectively improve software productivity.
Structured program design methodology is a combination of these tools to construct high-quality programs.