Basic requirements for website development architecture design
Source: Internet
Author: User
The website file name describes the business content in standard English words. If one English word cannot be described, you can add two or three words, but try to use full words, such as article. aspx/articleView. aspx/articleList. aspx.
Website File name:
1. The website file name describes the business content in standard English words. If one English word cannot be described, you can add two or three words, but try to use them as full words, such as article. aspx/articleView. aspx/articleList. aspx.
2. do not use numbers to describe the file name.
3. the file name should not be too long. it should be up to 20 letters.
4. the image file name should describe the image content category as much as possible. Use btn, menu, title, arrow, line, dotline, bg, and other prefixes as much as possible. For example:
Btn_friendlinks.gif/title_contactus.gif
5. do not use. inc or other names for include files. this file name can be downloaded, which is not safe. All files with dynamic content must adopt
Development technology name. For example, dbconn. inc. aspx/index. lang. aspx.
6. try not to generate files of the same name in different folders. For example: modules/index. aspx language/index. aspx
Requirements for designers:
1. save the image file. After cutting the image, the website page designer classifies the image and places the image with text in the language/images/folder. Put images without text in the templates/current website name/images/folder.
2. Save the CSS style file. The website has at least two CSS files, one of which is the language/The langstyle.css file. This css file defines the text size and font after the language conversion. In addition, the css file is saved in the templates/current website name/styles folder, which is used for page layout display.
3. Save the Media file. Common media files such as Swf files can be stored in the same way as image files. However, it must be divided into text and text.
4. Save page files. All page files are stored in the templates/current website name/directory, regardless of subdirectories. the file extension is. Html or. tpl. aspx/. tpl. php. The link is either absolute or relative, and cannot be mixed.
5. the file name is named according to the second description, and files such as inc do not need to be extracted. If the designer modifies the public part, specify the document to use.
Requirements for programmers:
1. Modular programming with hierarchical development of display layer, control layer, and data layer. Reusability is considered during Module design to facilitate application to other projects.
2. class-based programming increases code reusability and readability.
3. clear comments to facilitate subsequent modifications by developers.
4. the Html template reading, control module classification, and data operations should be clear and not obfuscated.
5. based on multi-language and multi-template development ideas, it facilitates website upgrade, revision, function expansion and transplantation.
Other instructions:
1. The website background management function is also applicable to the above architecture. of course, you can cancel the Template Function Design section.
2. Html's affinity design for search engines, DIV + CSS layout design, is to look at the integrated skills of designers.
3. programmers consider the security of interactive content transmission. You can use SSL technology to encrypt and transmit sensitive data, or use javascript encryption + background script decryption to send and receive encrypted data in the form of an exchange key. this solution is cost-effective and fast.
5. application of technology hiding and URLRewrite. Development and deployment of the URLRewrite application or hidden extension under IIS.
6. the output of this architecture is based on functional actions instead of page access. For example, you can directly access/member/infoModify. aspx before accessing the member information. And the architecture is through/cmd? Act = memberModify access.
7. differences between the Components directory and the Modules directory. The Components component directory usually stores completely independent functional Components that are completely portable, such as vote voting, counts statistics, editor General html editor, and so on. While most of the Modules are website service layers, which have poor portability and are equivalent to website columns, and feature discretization is complicated. It can also be understood as developing components that are compatible with various websites. modules must be independent business logic services.
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.