Today, I will discuss the idea of reimburse the website. I have not considered the problem of the goal of the website, I have not considered it. The retrospective of the website involves: 1) Code functional level is a simple method for familiarity; 2) Site architecture reconstruction, the basis of current DUWAMISH-based architecture is not suitable for a large number of reconstruction. Therefore, we are positioned with the remodeling target in the simple finishing of the code, familiar with the code. Next phase, complex reconstruction is performed. The architecture itself does not have too much problem (at least suitable for the current application), but due to the chaos of code development "corrosion" architecture itself, it is not necessary to maintain the late stage, so it is a good architecture, but lacks the code in the development The control and the aid of the REVIEW of the code, the program will not be maintained.
The five basic principles of judgment reconstruction (Robert C. Martin): Single Responsibilities (SRP), Open-Closed Principles (OCP), LISKOV Replacement Principles (LSP), Dependent Inverse Principles (DIP), Interface Isolation Principles (ISP), Then combined with the Code bad taste of Matin Flow, the code needs to be reconstructed and how to reconstruct the basic principles. (Use these principles to ask yourself some questions: Do you meet DIP principles?)
I recommend Robert C. Martin's "Agile Software Developments: Principles, Patterns, Practices". He said: Want to see if it meets a few basic principles when considering the rationality of a class, and give it to this book. Some examples have been included in the instances.
In the discussion, I have been avoiding the rationality of discussing the needs, because lacking the judgment and analysis of the demand itself, "how to do it", resulting in different versions of the code overlap (bad code writing habits It is also the main reason for this consequences).
We also talked about the processing of the stored procedure. The DUWAMISH framework is a memory process to complete the data, but the stored procedure is abused in the development, and some stored procedures contain the content of business logic, such as the statistics of the table, the stored procedure, such storage procedure Implement the statistical logic in the code after decomposition.
In addition, the methods provided in the book "Enterprise Architecture Mode" in the DUWAMISH framework have not been able to change the current system of system problems, and refer to the various methods in "design mode", reconsider the design, will help Reconstruction of the system. (The system is impossible to do a big adjustment on the infrastructure, the opposite code is to solve the "corruption" approach to the current system.)