Traditional Culture Encyclopedia - Traditional stories - What are the two commonly used programming methods?

What are the two commonly used programming methods?

First, structured programming and object-oriented programming.

Structured program design is the basic principle of detailed design, focusing on module function and process design. Structured programming is a subset of procedural programming, which uses logical structure to write programs to make them more effective, easier to understand and modify.

As a new method, object-oriented programming is essentially an abstract thinking process and an object-oriented method embodied by modeling.

Extended data:

Principles of structured programming:

Structured program design adopts top-down and gradual refinement design method. Each module is connected through the control structure of "sequence, selection and circulation", with only one entrance and one exit.

The principle of structured programming can be expressed as: program = (algorithm)+(data structure).

The algorithm is an independent whole, and so is the data structure (including data types and data). The two are designed separately, and the algorithm (function or process) is the main one.

With the development of computer technology, software engineers pay more and more attention to the expression of the overall relationship of the system, so data model technology (treating data structure and algorithm as an independent functional module) appears, which is the embryonic form of object-oriented programming.

Baidu encyclopedia-structured programming

Baidu Encyclopedia-Object-oriented Programming