Algorithm+ Data Structure =Program.
This is a famous formula. However, I think the formula is too simple or cannot adapt to the current development trend.
One purpose of a program is to simulate human behavior, so that machines can automate the transactions they need to handle.
Because of this, the program has a strong "procedural", converting human steps into a sequence of computer instructions.
Procedural Design is the most primitive method and a method that fully simulates human habits.
However, the process is not the focus of our attention, but the result. As long as this result is returned, we don't care how the process is actually implemented.
Is there a way to express the ing between input and result?
Yes, that is, the function. With the function, we abstract the process. We don't care about the process any more, just know that the function can work normally.
Therefore, a function is a process abstraction. We can identify specific human transactions into various functional relationships. Function relationships are the corresponding methods for defining domains and Value domains. To establish a function relationship, you must first define the domain and value range. This is a set of data states and then define the conversion method.
A function is a high-level abstract concept, but it is too mathematical. The general method of understanding things is not to define a set of states, but based on some summarized concepts.
The concept is a combination of attributes and actions. For example, "color" is an attribute, while "fly" is an action.
Concepts are highly abstract and different from specific objects. Through Concepts, you can ignore what a specific object is, but you only need to care about refining concepts.
In terms of a certain level, the concept and function are similar, and they are all aimed at programming design at a high-level level.
----------------------------------------------
What is the connotation of high-level design?
The first point is the design idea from top to bottom. The concept is related to a specific instance.