At present, the website system problem can use Robert C. Martin "Agile ..." ... 气 ... "to analyze: rigidity, vulnerability, strongness, viscosity, unnecessary complex, no Necessary repetition, 涩性.
There will be many changes in the search function of the website, and whether the STRATEGY mode can be used to organize this behavior of the system? "When you are ready to use policy mode in a system, you must first find an algorithm that needs to be packaged, see if the algorithm can be divided from the environment, and finally check whether these algorithms will change in the future." (Hong "Java And patterns "). The goal of packaging is to search for those features related to component search, but are these features? Is it possible to separate from the system? The functionality of the component search is large in the future.
So the current problem is how to separate these search functions and the links between these functions and common? Can I try to adopt an active diagram, analyze each part in detail, compare the commonality of each method during this process? Including the part of the part that is separated from them and this system? "We need to add a new search method now, how will you do it?"
By reconstructing discussions in today's first group, Guo proposed
1. Management of the Config file can be maintained by the special person, and some people will be revised by others in subsequent development.
2. Prepare a lecture by Guo: About SESSION operations in ASP.NETs.
3. Similar to Common Data is divided into each logical function in the namespace: ComponentData.cs is changed from SCL.Common.Data to Scl.Business.comPonent (assuming namespace) ), But physical traffic is still placed in SCL / Common / Data.
The consensus reached:
1. Reconstructive goals: Improve code readability, eliminate part redundancy code, adjust the code structure that is easily changed, making it adapt to changes in demand. At the same time, establish a website architecture document.
2. Reconstructing process: Through the team's reviation of the specified range code, then discuss the code problem, list the reconstructed directory, the priority is sorted according to the reconstruction target and the emergency degree, first Reconstructing the impact point of the development of the priority to the development of the following functional extension.
3. Reconstructing method:
(1) Extract the internal function and public methods of the code class, and some methods are moved into specialized-managed classes.
(2) Decompose a large page, break down into several modules.
(3) Eliminate redundant temporary variables, pages, and codes.
(4) Subject to some Switch structs unless necessary to use the inheritance mechanism.