Simple development process of a project-requirement, database, and code

Source: Internet
Author: User

Simple development process for a project

From November 8 to November 12, our team developed a simple website, that is, a simple portal website, using HTML + easyui + ashx + Asynchronization, next I will discuss some of the issues we encountered during development over the past few days and some of my own opinions on the development process of the project. Of course, my opinions are limited, therefore, we hope that the majority of bloggers will give you some insights on the processes that you have come into contact with in your work, so that we can learn from them easily. Next, let's take a look at the entire project process.

1. Requirement first

(1) This is very important in the entire project. If there is no need or the requirement is unclear, our developers will not be able to save it because they do not know how to write it, therefore, the demand research in the early stage is very important. If we do not make a good arrangement in this area, we will encounter many problems in the future, and I will discuss our problems later.

(2) Of course, although we know that we need to analyze the requirements, we did not do the requirement analysis, because the database is already built, and we are learning the technology, just to code, we write and play on our own. Of course, we are learning and improving from these projects, so we all know the basic requirements.

(3) I remember when I first went to the company, our director once asked me to write a requirement analysis. The project is the personnel positioning management system of the coal mine. when I first got in touch, I had a big head and had no idea what the requirements were. Then I checked the information but didn't write it at the end, because the demand was originally there. Our director just tried to train me, so let me think about it myself, and then we came to our company team to design a hierarchical permission setting. Everyone knows that the permissions are nested in several tables, so I learned a lot at that time, finally, the company has an OA project, which I wrote for demand analysis.

2. design the database.

(1) When we finish writing our requirements, it is time to build the entire database. We can also say that the database is the most important role in the entire project, A good database designer can see from here, because our database is well designed, so I will only talk about my own feelings here. I am weak in database, therefore, the opinions are very simple.

(2) I think the primary key is required. Each table has its corresponding primary key, and it is recommended that the primary key be represented by an irrelevant field ID, so that we can easily write data in the project.Code.

(3) others are naming and other things that are best known and intended. Do not use Chinese characters for naming, and the database design follows three major paradigms.

3. Finally, the encoding is implemented.

(1) first create a solution project, and then use the dynamic software generator to generate the corresponding code. Then, put the code in the solution, modify the bug, enable the dynamic software code to run, and finally create a web application.ProgramThe entire architecture: it is a typical three-tier architecture.

(2) Integrate the projects of the group without using any technology. If you do not discuss how to solve the problems at the early stage, you will encounter many problems during the whole project, I think everyone knows it. If the project is bigger, it would be worse. How can it be convenient to merge the projects, next, let me talk about my ideas. It's just a reference. You can come up with us to learn and make progress together.

(3) first, we must create a folder for using external files in the Web application. For example, we can put the JS files we use under the jquerys folder, the CSS file can be placed under the corresponding style folder, and the called dll can be put under the Lib folder, as shown in.

(4) We generally cannot directly operate soft-generated code in it, because if the database structure changes, we need to re-generate the code generation, it will cover our codes or copy and paste them one by one, which is really a typical hard-pressed programmer, so if we need to add a paging Method to the user table at the DLL layer, we can directly create a partial classification lysc_userext, and then implement the Code, structure diagram, and code: what is highlighted in high definition is what we re-establish.

(5) Then I will focus on the implementation of our background, because our background is written by role, and everyone has a module for everyone, therefore, the development of the day after tomorrow can especially reflect the content mentioned above, because the background is divided into user management, customer management, corporate culture, news and talent management, therefore, each role creates a folder, for example, the user corresponds to users and news, and then places the easyui folder row in the background, then, because we used the Rich Text Editor in the background, we put the Rich Text Editor folder below, so that we can build the development environment of the entire system ,:

(6) In this way, the development of the entire environment is ready, and the file is sent to each of our Members. Then, each member corresponds to the development role of each member, create HTML under the corresponding folder. Generally, the processing program and code are written. During the final merge, we only need to copy the folder of a member to the project.

4. debugging and Testing

(1) first, we should perform proper debugging when writing code, such as low-level errors, text box length, and mail format, the text box cannot be empty. We should avoid such bugs, so we should write them when writing code.

(2) if our team has a test team, their test will write the test code for testing, which is the best, but we have no testers, our own member testing project.

(3) The most taboo in testing is testing your own code. Some potential Code may not be tested, so after the project is built, we need to allocate the modules we have developed to others for testing, and you test the modules of others. In this way, the black box test is basically passed, so that the website of an enterprise is shaped, our website is also being tested.

5. effect diagram:

(1) User Management

 

 

 

(2) news management

 

 

 

 Project: It was originally uploaded in the blog Park, but it is too big to be in csdn,Http://download.csdn.net/detail/hanyinglong/4767316

 

From: http://www.cnblogs.com/hanyinglong/archive/2012/11/12/2766769.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.