Design pattern learning note [original] (1) Just talk

xiaoxiao2021-03-05  30

Just talk about

In the process of learning design model, there is a feeling more and more strong, it is abstraction. That is to put some repeated things, sorted out together, and it is convenient to write. From the most primitive cycle, to the later functions, even the ancient algebra, by using the alphabets that can represent any number, it can be directly studied directly, and a formula represents countless individuals, initially People who present this thing are really amazing. And the loops and functions make it only to change other identical programs different from the different parameter values. By means that the parameters are denoted by variables, they put them together, so simply modify the code of a place, it is equal to a lot of places. The code is obvious.

Of course, then there have been classes and objects, but it is almost abstract continuing development, but this time, people have seen structures from the procedures of the deadline in the machine, one of the same relationships with the real world structure. It is found that some code and some data exist in order to complete the same function, so put them together, called a class. There are also a complete set of structures. This is an abstraction than a higher level.

When talking about design mode, what kind of, inherit, polymorphism, what kind of, inherited, can only be said to be an element. People use these elements to assemble them in a certain structure, let them work together, and achieve the features and extension performance we want. The design mode is an abstraction of this structure because abstraction is from some structures, so it is just a relationship between some objects in design mode, and has nothing to do with the language.

How will the software develop in the future? What is the next generation of higher abstractions? Is it a way to construct the design pattern as an element, then define a method to describe the relationship and structure between different modes? It seems that it seems that it is unlikely. More likely, the components are more likely to make a detailed provision for the interface. You should use the components to construct the software should be possible. Maybe a description language will describe the structure between components :). But still feel too unrealistic, it is unlikely. I don't want it.

Let's talk about the specific mode next time.

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

New Post(0)