The general process of program development

1. Determine requirements: Determine requirements with users, clarify what users need, and find pain points. What functions should be implemented or what performance requirements should be achieved.

2. Write requirements analysis documents, according to functional or performance requirements, describe functions or draw pages in full analysis for customers, developers and testers to use.

3. Requirements review: After the requirements analysis is completed, the customer and experienced leaders or engineers need to be invited to review together to determine the deficiencies of the analysis, record them, and determine the requirements analysis.

4. Detailed design: According to demand analysis, write detailed design documents and define interfaces.

5. Actual development: According to the demand analysis and detailed design, develop the interface. After the development is completed, check again whether there are any omissions, whether the interface method meets the requirements, and whether the interface classification is reasonable.

6. The company architect starts to build the framework

7. Project manager assigns developer tasks

8. Each team determines the rules of constraints and starts to develop according to the development documents.

9. The method of implementing the interface: create the corresponding implementation class, develop hierarchically, generally divided into dao layer, service layer, controller layer, view layer, etc.

Dao layer: mainly interacts with the database, generally CRUD operations directly with the database.

Service layer: business layer or logic layer, write business logic, call dao layer

Note: When implementing a method, you need to write one by one. After clarifying the method to be implemented, write the controller layer first, from the back to the front, write a method to test one, and then write another one after the test is passed. Good transaction configuration, improve efficiency, avoid directly testing a large method, and then find the problems of small methods one by one, which is a waste of time and risk.

10. Testing: Testing is a very important task. During testing, not only the normal production environment, but also abnormal scenarios must be tested. Data consistency and correctness are particularly important, and time-consuming is also an important concern.

11. Online: After the test is completed, the general company will have several environments, which must be tested, pre-production environment, quasi-production environment, and finally the production environment. No matter which Chinese environment, it is a good idea to pay attention to the background log output. The method is to record the background error information to see if it is normal or not. The abnormal error is a system loophole. Solve these problems and put it in the production environment.

12. Summary: There is no perfect system, only continuous improvement.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325764338&siteId=291194637