Http://open.discuz.net/?ac=document&page=dev_coderule
This article font size (for this article editor only):
Item description font size aggravation or not example
Important content Title 18pt heavy Color I. Code writing specification, " preface "
General descriptive text 13px does not aggravate the content of the color sequence
General descriptive text title 13px heavy color subtitle " code tag "
(Note: line and row spacing, consistent, the column head is consistent; each line content length is controlled by about 2/3 of the width of the screen)
Order:
The coding specifications for each development language are different, but some are interlinked. Whether you are doing PHP (development) or Java, or Android/ios.
Coding standard degree, is a code farming experience embodiment. The importance of coding norms, naturally self-evident.
Take a look at this article, we can draw on what coding on the figured conventions.
Of course, the coding specification is a systematic project, and there are some good coding habits you can add in the comments.
The coding specification directions discussed in this article:
code writing; database design; other aspects
(Note: This article is only the original content of the collation, limited to some of the details, no longer repeat.)
I. Code-WRITING specification
1. Code tags
2. Notes
3. Writing Specifications
4. Naming conventions
5. Variable/logic Check
6. Security
7. Compatibility
8. Code Reuse
9. Other details
II. Database Design Specifications
1. Table structure
2. Fields
3. Performance
Iii. other aspects
1. cross-platform
2. Project directory naming
3. File references in Project location
Excerpt from "discuz! Code specification for open Platforms "(Universal)