Function and Object Relationships

Source: Internet
Author: User

 

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.