Today I listened to a lecture on the overall design of the software, more gains, let me briefly introduce it. This lecture is also about the design of the B / S structure software. From the overall point of view, there are three things that have three levels can be studied, that is, architecture mode, design mode, code mode, these three modes are three hierarchical things .
First of all, the architecture mode, he is talking about Architecture, such as SOA, this is a very good architecture mode, no matter what the concrete thing is, it is an abstract thing, possibly It is a log, it may be a web page, or it is a short message on the phone. This output module is a relatively independent thing. Is a service, people who use don't have to manage things, just use its service. Compared with the original faculty programming, this thing is more unrelated to the platform, more open. Such a large number of complex mutual call relationships between the services, the service and services are established, and the layer of the layer is like the online seven-layer agreement in our general sense. This is not necessarily a seven floors for service. . It is expected. The key to the problem is how to define the system and subsystems and communications between them.
Design mode, this thing is like after the basic language and platform determination, how to develop, how to make the relationship between classes and classes, at this time, the design mode begins, there is no fixed mode must be Only when it is more appropriate to compare the pattern. Although the language is selected, for us, the definition of the class, the definition of the function, this is very simple, should be as simple as possible, while ensuring the structure of the program, easy to read and easy to maintain .
Code mode, this is more closely related to the language, when is our code, when in this place, in which place is used, after IF, use IF, but also use Else if ... These things are more complicated We need to summarize step by step.
In addition, several views mentioned are the test first, be sure to have enough tests for their own code, it is easy, but in the end, people are lazy, do not want to test, and push the test. The tester is not responsible, saying that it is not responsible for his code. Each level test, unit test, must do realize it, so that we can realize more grasp of the above-level code. Entity, Logic, Logic, the Web site is more complicated, it is difficult to do, but it should also be taken in accordance with the specification.
In addition, a thing mentioned is Flash, and the reported person says that Browse-based application base machine is Over, who implements one? Smart Client Rich Client is hard to say, Flash is a UI, very easy to use, Action Script is also strong enough. It is very likely to have your own development.