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.