Written on December 11, 2009 development environment WAMP (windows + apache + mysql + php)
First, demand analysis - do not take it for granted
We are always thinking in their own way to resolve some we think "should" question, however, the fact is often not "should." I collected part of the message, start the database design. I was the thesis, research projects and award-winning status as an entity to deal with, and this number together as a home page navigation bar. I take it for granted that a faculty website, these elements are very important, confidence is helpful for improving the faculty, and allow browsing of the students to grasp as fast as the latest academic research departments. No further communication in case of confirmation needs to establish its table structure. Semi-finished products, when the President to review the results on this point is first president vetoed. From the technical point of view we just take it for granted that that, but we ignore the psychological factors, social factors, etc., alone, makes the system less in the data table 7. Also in the background and management, I was naive to think that there is no need for a small site administrator grade, but mention the background management, teachers first grade is the management of content. To this end, the system development has added a late table. Since then I understand, even the small, ordinary places and then have to communicate confirmation to the customer, never take it for granted.
Second, the system architecture - must kill a chicken with chopper
Third, resolution and encoding module
System framework buttoned, we began to design a specific module. The system as a whole, is divided into several main sections such: rolling news, college news, photos news, notice bulletin, employment information, technological innovation, often landing site link and email. One E-mail is to provide a college-mail landing, just take the time to achieve the data forwarded to the campus master mail server on it to achieve very simple, do not do details. The common link is only shown a few students used the school site and external site links, functionality is very simple, just add the background in the management of the module CRUD functionality. Other modules in the title page only shows, and then you have a specific display page (details), used to display information on the details of which, in the details page, keep the home page banner head of information and navigation information, and left scrolling news, E-mail, technology innovation and modules, to the right of most of the space used to display a new
News of the specific content, including display news headlines, time, type, author, subject content. In the Instructors page, we added three pages, two pages to display the teacher's classification list, three pages is to show a teacher's specific information, including photos, contacts, papers, research orientations and so on. In accordance with the specific function of each module, we use the php program to achieve the processing logic, read data from the database, and then processed with our prior agreement of some kind of format to the front page.
The system is very important module is the background module, in fact, all prospects appear relatively simple, as long as good architecture, data alone is easy to grasp it out, but the background you need to deal with all the content, and to deal with the results of qualified write to the database. Our approach is that each menu item for the front, all in the background to be a management option, so for the type of management, this is also to administrators to better manage data, control output. Administrators we have adopted a hierarchical management approach. First of all, the system default to have a super administrator, super administrator has the highest administrative authority and all authority. New sub-administrators from the super-administrator, and set the initial login password. The new sub-administrator account by default is off, also do not have any management rights, and that needs super administrator assigned rights, such as scrolling news management rights and management rights of employment information, etc., do not have the permission of the account, the corresponding management capabilities will be frozen, so easy classification management site. In the final system design, we added a static page-oriented technology, often to visit all the pages are static pages in the form of display, of course, these static pages is the system administrator updates after the system generated. Static pages also help accelerate the access speed, ease server stress.
4, debug integration and deployment - the version control is always achieved after all the code and started system integration. In fact, each module is put into place appropriate output. Set
Into the butt end, entered the follow-up important links: system testing. This time, in fact, our best hope is to some problems, so we have a good time to resolve, so the system when a large on-line problem. The most terrible is the browser compatibility, the workload in the test phase is the largest to the core family is fully compatible with IE and Firefox core family is not easy, but fortunately, we stuck with it, after some debugging changes to make the system compatible most of the browser.
It is worth mentioning that in time version control, this is very important. Every time we modify the test phase have uploaded a new version, 1.0 to n.0, it makes more and more number of versions, and later when the upload is always wrong, such as the low version of the system, uploaded to the server That result is clear: test failed! The reason is no use version control, adding the introduction of a version control, this problem will not happen again. This is also the development of this system, the more regrettable.
The development also has a more regrettable is that not using MVC model development, so that may be more messy code, modify the business logic is not very convenient. Overall, this system development is very successful, in succession, while the old technology, but also introduced some fashionable new technology system is also very stable for now. Feel happy, we have to think some of the problems. First thing to say is communication! Communication is too important, it is proved that any one small aspect, there is need for good communication with the client to do otherwise is easy to rework. At the same time do version control, so that when they are not to write code clutter. Thus learn a lesson.