What is the real programming method?

zhaozj2021-02-16  49

What is the real programming method?

Is it an object-oriented method? Is it a process-oriented approach?

Not right, because it is incomplete, because in the process of programming, there are three cores: data, methods (functions), processes (can also be referred to as a process, but process sometimes as synonyms of functions).

In fact, in terms of importance, the process is the most important, and the remaining two parts are equally important.

"Object" in an object-oriented method is actually the combination of the first two. Therefore, object-oriented is the previous two, in fact, this is wrong, because the real core is the process!

So, is it right for the process-oriented design method? Not right. Because of the course of the process, although the core of the program is caught, the other two important parts are ignored, so it is incomplete way. When the number of data and methods in the program is increasing, it is easy to make confusion. In order to solve this problem, the object-oriented design method is produced, but the problem is solved, the core thing is lost.

Over the years, I have been don't like the object-oriented technology, but I can't say why, I feel a bit wrong. Today, I'm experiencing, it turned out to lose the core thing - the process!

Data and functions can be found in the source code and library files, which can be said to be obvious, but it is also dead. The process is living, it can be very good in the operation of the program. For the program under multi-task operating systems, the process is sometimes guided by the user's operation, so it is very complicated.

For an alteration, the data is the purpose, the function is a tool, and the process is "means using tools to achieve the purpose".

Therefore, the real correct program design method should be based on the process, and the three are both heavy. It should serve as a new noun to emphasize this correct design method.

From the perspective of practice, just extract the essence of the "object-oriented" in the two design methods of "object-oriented". Combine, take the process as the core, fully emphasis on the organization, planning and management of data and methods. It is ok.

转载请注明原文地址:https://www.9cbs.com/read-24252.html

New Post(0)