On the revision of programming development in the direction of industrialization

xiaoxiao2021-03-06  45

I will say an example: on an idealized ant hunting area, as follows: *********** | | | | ----------- ------ Ants start from the bottom line, push the food to the terminal. & A ant can be promoted, # should be three. Please give the ants wisdom! I will say: "1) Go forward. 2) Food Push, more than 5 seconds, don't move left, the food stops. 3) Do not die, touch the wall to the left. During the end of the .4) Return to initialization after time T. This is self-organized. Because Survival! Of course, for the competition strategy, there will be different T. (there will be different winners for different food cycles.) This is a small fresh instance. You can see this is a thought, ie It is possible to indicate that industrialized software is possible. The idea and organization of the project can come out of a road in intelligence-intensive software production, but the specific method is not self-organizing, although it seems to be the same in shape. Now, in addition to intuitive sensory, We also need to analyze more deeper, and Ding is expensive! So some ideas and fresh information will be given. A new programming language 1): Extunition object-oriented programming, should be "concept" programming, each The transition of "concept" is used as the division boundary of the module. The transition operation is complete by "message" .2): Use the heavy loop and go ... to use the "message" to complete its implementation. Light loop still classify the basic code block. 3 : Transition of the type of variable, and the internal impact between the same type, and the module property value transition, as a "message" implementation. 4): The operation is also implemented by "message". Technology route is: under Windows or Linux Multi-application and swap files implements multi-threads as a means, will be "objects" to "concept" programming; to reserve the setting of the global variable, the corresponding supplementary keyword processing function. 1): The implementation is as follows: column An important concept involving automation and manual operations, an operation of a concept is implemented in a module. Message is used to implement the concept of transformation (the internal impact between the interaction "and the same type (FriendeffTnews), and the module AttributeNews. 2): The implementation is as follows: Heavy loop refers to an automated operation covering different "conceptual modules", using if for for & nextendflag = true kil = true; processing function and cycle message implementation. GO ... TO. 3): The implementation is as follows: write a message table, using the index of the message Send a message. SIMAPLE: 101; / * The function for news. * / Compile to TC2.0 *. 加 When you add a keyword handler to the source file, process the message and issue a message to implement message processing. . 4 :) The implementation is as follows: The transformation of the message implementation concept is issued in the module and affects the completion of the program. Key: a): The program function is achieved by the transformation and impact of the concept. Messages are widely used as a means of packaging and isolated. B): VC and other weight type language is too complicated so uncontrollable. Use the TC2.0 lightweight language to separate the module boundary. C): As long as the file is written, you can obtain and display data, you can compatible with the C under Linux. Use the file to exchange data and messages, can operate in parallel.

Modeling Example: First use the object-oriented method The coffee machine is composed of the following components, there is a PIA (programmable interface adapter), as well as a CoffeeMaker, and SIMULATION (driver). Plus GUI. Use the conceptual method PIA with switches A, B, C "concept", CoffeeMaker has coffee beans, power, water "concept", Simulation has electrical energy, switch E, F, G "concept", the coffee maker The circulating water will be realized by a suitable "water cycle" giant cycle message. Jump is achieved by "GOTO" message. PIA Switches A, B, and C "Concept" "Press" will generate an important PressTrue message, which changes the concept "Simulation Switch E, F, G Concept" to TRUE. The main function is as sufficient to handle the message. It can be described as "more benefits!" Jump new solution: COPY jump until the end of the area, in the same area: if 0 == 0 Then "Copy" Else IF According to this conjecture: All goto jump can be rewritten as a post-jump .庖庖 's cattle should also be present in the mind. Then analyze: the road of industrialization, Microsoft does do it, if you want to delete the previous saved chicken rib when you save your file, you can press SHIFT DEL in the Save dialog in the save dialog, this is a big The technology of the factory starts with carefully designed, which is infinite. (More likely, Bill's dog is transported. But before reaching a big factory, died of endless plants, no matter whether he is disciplined. But in the successful person of the normal distribution, this is an inevitable phenomenon. My own, C 's idea is just a logic of logic, and the logic of industrial production is directly directly. So the next generation of "class" should be a class of logical packages suitable for industrial to obtain freedom, form, and division of labor and time series! The Chinese software should be in line with the products of industrial production, not crafts, otherwise they will only be like Chinese silk fabric and Western woven. When the times are in front of you, you will only regret! Let's get up! Let's get up! Let's get up! Author: Sheng-wave unit: Harbin University of Science and 98 of the control Blog: http: //blog.9cbs.net/flyfash/

related articles

"There is no secret" secret - find a suitable "subject" .NET intersection under the new effect of the new effect, the first solution, the programming development of industrialization

Comments on this article

Flyfash (2002-06-26) About "classes", I want to be happy in a good order! Good luck!

Flyfash (2002-06-26) "Transform the type of variable, the internal impact between the same type, and the module attribute value change, as" message "implementation." 中 "and the internal impact between the same type, and module The attribute value is transformed. But you can't form a structural frame, you have to continue the dog.

Flyfash (2002-06-26) "Each" Concept "transition as the division boundary of the module" With this, it will become a long chain flow to the main function processing, and the short chain between each module will not form a short chain between each module. , Lack unified scheduling. With unified scheduling, it will be the structure of a good order.

Flyfash (2002-06-26) "The type transition between the variable, and the internal impact between the same type, and the module attribute value, as" message "implementation." Press the button, the water heater flows out of hot water. It is "direct" we have to get. My modeling method is to first take two heads - "cold water", "hot water". Plus the power, there is a button dragged out of the current, and there is a change in a certain. Look for things that all relationships until the messages. The transformation of "cold water" and "hot water" is achieved, that is, the implementation of software. One will be logically penetrated, "cold water" becomes "hot water" is not a drama, and the auxiliary of the message chain is required, and the independent integrity of the module is guaranteed to encode. Flyfash (2002-06-25) machine or software instead of people's wisdom, I am just a more reasonable way of thinking, like the example I give, with a good start, good methodology It will have a good result.

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

New Post(0)