Computer Program interpretation and Construction (sic) learning 2-two different world views on the System Structure"

Source: Internet
Author: User

Original article:In the face of largeProgramThe organization of the program is largely dominated by our understanding of the simulated system. There are two distinctive organizational strategies. They originate from two different "world views" of the system structure ". The first is to focus on objects and regard a large system as many objects. The State and behavior of these objects may change with time. Another strategy focuses on the flow of information flowing through the system, just as an electronic engineer observes a signal processing system.

Understanding:Object-oriented Thinking and functional programming? The most notable characteristic of object-oriented is that the state of a group of objects changes constantly, and objects are structured and destructed.

 

Original article:Both the object-based approach and the stream-based approach have important language requirements for programming. For the object path, we must pay attention to how the computing object can change and maintain its identity at the same time. This will force us to give up the "substitution model" and turn to a more mechanical, theoretically less easily grasp the "environmental model" of computing ". When dealing with objects, changes, and tagging, the root cause of all sorts of difficulties is that we need to fight against time in this computing model. It is much more difficult to allow concurrent execution of programs. The stream mode can be used to release the Time Simulation in our model to the order in which various events occur during the Computer evaluation process. We will do this through a technology called "latency evaluation.

Understanding:The focus of the object-oriented method is the changes in the object state and behavior. With the passage of time, we need to record or maintain the state of the object at a certain time point. The concurrent access operations of multiple objects to the same variable lead to disorder of the object's state at the time point. To reduce this situation, add the scope of the variable and restrict it within an object, that is, the private attribute and field that we often call.

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.